Codebase list realmd / upstream/0.2 service / realm-errors.h
upstream/0.2

Tree @upstream/0.2 (Download .tar.gz)

realm-errors.h @upstream/0.2raw · history · blame

/* 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_DISCOVERY_FAILED,
	REALM_ERROR_ENROLL_FAILED,
	REALM_ERROR_UNENROLL_FAILED,
	REALM_ERROR_BUSY,
	REALM_ERROR_ALREADY_ENROLLED,
	REALM_ERROR_NOT_ENROLLED,
	REALM_ERROR_AUTH_FAILED,
	_NUM_REALM_ERRORS
} RealmErrorCodes;

G_END_DECLS

#endif /* __REALM_ERRORS_H__ */