File: realm-errors.h

package info (click to toggle)
realmd 0.17.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,812 kB
  • sloc: ansic: 17,209; sh: 5,034; xml: 1,770; makefile: 569; python: 327; sed: 16
file content (46 lines) | stat: -rw-r--r-- 1,113 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* realmd -- Realm configuration service
 *
 * Copyright 2012 Red Hat Inc
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation; either version 2 of the licence or (at
 * your option) any later version.
 *
 * See the included COPYING file for more information.
 *
 * Author: Stef Walter <stefw@gnome.org>
 */

#include "config.h"

#ifndef __REALM_ERRORS_H__
#define __REALM_ERRORS_H__

#include <gio/gio.h>

G_BEGIN_DECLS

#define       REALM_ERROR               (realm_error_quark ())

GQuark        realm_error_quark         (void) G_GNUC_CONST;

typedef enum {
	REALM_ERROR_INTERNAL,
	REALM_ERROR_FAILED,
	REALM_ERROR_BUSY,
	REALM_ERROR_ALREADY_CONFIGURED,
	REALM_ERROR_NOT_CONFIGURED,
	REALM_ERROR_AUTH_FAILED,
	REALM_ERROR_BAD_HOSTNAME,
	REALM_ERROR_CANCELLED,
	_NUM_REALM_ERRORS
} RealmErrorCodes;

#define       REALM_KRB5_ERROR          (realm_krb5_error_quark ())

GQuark        realm_krb5_error_quark    (void) G_GNUC_CONST;

G_END_DECLS

#endif /* __REALM_ERRORS_H__ */