2012-02-01 12:34:08 +00:00
|
|
|
/* libsecret - GLib wrapper for Secret Service
|
2011-09-25 06:22:36 +00:00
|
|
|
*
|
|
|
|
* Copyright 2011 Collabora Ltd.
|
|
|
|
*
|
|
|
|
* 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
|
2012-03-31 13:32:43 +00:00
|
|
|
* by the Free Software Foundation; either version 2.1 of the licence or (at
|
2011-09-25 06:22:36 +00:00
|
|
|
* your option) any later version.
|
|
|
|
*
|
|
|
|
* See the included COPYING file for more information.
|
2012-03-31 13:32:43 +00:00
|
|
|
*
|
|
|
|
* Author: Stef Walter <stefw@gnome.org>
|
2011-09-25 06:22:36 +00:00
|
|
|
*/
|
|
|
|
|
2012-02-02 12:40:47 +00:00
|
|
|
#if !defined (__SECRET_INSIDE_HEADER__) && !defined (SECRET_COMPILATION)
|
2012-03-24 06:52:12 +00:00
|
|
|
#error "Only <secret/secret.h> or <secret/secret-unstable.h> can be included directly."
|
2012-02-02 12:40:47 +00:00
|
|
|
#endif
|
|
|
|
|
2012-02-01 12:34:08 +00:00
|
|
|
#ifndef __SECRET_TYPES_H__
|
|
|
|
#define __SECRET_TYPES_H__
|
2011-09-25 06:22:36 +00:00
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2012-02-01 12:34:08 +00:00
|
|
|
#define SECRET_ERROR (secret_error_get_quark ())
|
2011-09-25 06:22:36 +00:00
|
|
|
|
2012-02-01 12:34:08 +00:00
|
|
|
GQuark secret_error_get_quark (void) G_GNUC_CONST;
|
2011-09-25 06:22:36 +00:00
|
|
|
|
|
|
|
typedef enum {
|
2012-02-01 12:34:08 +00:00
|
|
|
SECRET_ERROR_PROTOCOL = 1,
|
2012-07-09 06:44:50 +00:00
|
|
|
SECRET_ERROR_IS_LOCKED = 2,
|
|
|
|
SECRET_ERROR_NO_SUCH_OBJECT = 3,
|
|
|
|
SECRET_ERROR_ALREADY_EXISTS = 4,
|
2012-02-01 12:34:08 +00:00
|
|
|
} SecretError;
|
2011-09-25 06:22:36 +00:00
|
|
|
|
2012-02-01 12:34:08 +00:00
|
|
|
typedef struct _SecretCollection SecretCollection;
|
|
|
|
typedef struct _SecretItem SecretItem;
|
|
|
|
typedef struct _SecretPrompt SecretPrompt;
|
|
|
|
typedef struct _SecretService SecretService;
|
|
|
|
typedef struct _SecretValue SecretValue;
|
2012-01-11 06:44:32 +00:00
|
|
|
|
2012-07-06 07:42:08 +00:00
|
|
|
#define SECRET_COLLECTION_DEFAULT "default"
|
2012-03-11 12:35:43 +00:00
|
|
|
|
2012-07-06 07:42:08 +00:00
|
|
|
#define SECRET_COLLECTION_SESSION "session"
|
2012-03-11 12:35:43 +00:00
|
|
|
|
2011-09-25 06:22:36 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __G_SERVICE_H___ */
|