summaryrefslogtreecommitdiff
path: root/library/gsecret-service.h
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-01-25 14:26:52 +0100
committerStef Walter <stefw@gnome.org>2012-02-03 20:44:44 +0100
commitc6c6afa2cc95aff8344bcc264b89f98fbb63e931 (patch)
treedf61eac746dcc9808ceca81f1007a37bfe6f4630 /library/gsecret-service.h
parentf44aae6efa58c388bebd5778a169a62c6ddf3525 (diff)
downloadlibsecret-c6c6afa2cc95aff8344bcc264b89f98fbb63e931.tar.gz
Rework how the initialization work for various proxy objects
* Fix bugs and tests
Diffstat (limited to 'library/gsecret-service.h')
-rw-r--r--library/gsecret-service.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/library/gsecret-service.h b/library/gsecret-service.h
index 197a1fa..b2eb012 100644
--- a/library/gsecret-service.h
+++ b/library/gsecret-service.h
@@ -22,6 +22,12 @@
G_BEGIN_DECLS
+typedef enum {
+ GSECRET_SERVICE_NONE,
+ GSECRET_SERVICE_OPEN_SESSION = 1 << 1,
+ GSECRET_SERVICE_LOAD_COLLECTIONS = 1 << 2,
+} GSecretServiceFlags;
+
#define GSECRET_TYPE_SERVICE (gsecret_service_get_type ())
#define GSECRET_SERVICE(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), GSECRET_TYPE_SERVICE, GSecretService))
#define GSECRET_SERVICE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), GSECRET_TYPE_SERVICE, GSecretServiceClass))
@@ -63,16 +69,34 @@ struct _GSecretServiceClass {
GType gsecret_service_get_type (void) G_GNUC_CONST;
-void gsecret_service_get (GCancellable *cancellable,
+void gsecret_service_get (GSecretServiceFlags flags,
+ GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GSecretService * gsecret_service_get_finish (GAsyncResult *result,
GError **error);
-GSecretService * gsecret_service_get_sync (GCancellable *cancellable,
+GSecretService * gsecret_service_get_sync (GSecretServiceFlags flags,
+ GCancellable *cancellable,
GError **error);
+void gsecret_service_new (const gchar *service_bus_name,
+ GSecretServiceFlags flags,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+GSecretService * gsecret_service_new_finish (GAsyncResult *result,
+ GError **error);
+
+GSecretService * gsecret_service_new_sync (const gchar *service_bus_name,
+ GSecretServiceFlags flags,
+ GCancellable *cancellable,
+ GError **error);
+
+GSecretServiceFlags gsecret_service_get_flags (GSecretService *self);
+
const gchar * gsecret_service_get_session_algorithms (GSecretService *self);
const gchar * gsecret_service_get_session_path (GSecretService *self);