1/* libsecret - GLib wrapper for Secret Service
2 *
3 * Copyright 2011 Collabora Ltd.
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation; either version 2.1 of the licence or (at
8 * your option) any later version.
9 *
10 * See the included COPYING file for more information.
11 *
12 * Author: Stef Walter <stefw@gnome.org>
13 */
14
15#if !defined (__SECRET_INSIDE_HEADER__) && !defined (SECRET_COMPILATION)
16#error "Only <libsecret/secret.h> can be included directly."
17#endif
18
19#ifndef __SECRET_TYPES_H__
20#define __SECRET_TYPES_H__
21
22#include <glib.h>
23
24G_BEGIN_DECLS
25
26#define SECRET_ERROR (secret_error_get_quark ())
27
28GQuark secret_error_get_quark (void) G_GNUC_CONST;
29
30typedef enum {
31 SECRET_ERROR_PROTOCOL = 1,
32 SECRET_ERROR_IS_LOCKED = 2,
33 SECRET_ERROR_NO_SUCH_OBJECT = 3,
34 SECRET_ERROR_ALREADY_EXISTS = 4,
35} SecretError;
36
37#define SECRET_COLLECTION_DEFAULT "default"
38
39#define SECRET_COLLECTION_SESSION "session"
40
41G_END_DECLS
42
43#endif /* __G_SERVICE_H___ */
44