2011-09-25 06:22:36 +00:00
|
|
|
/* GSecret - GLib wrapper for Secret Service
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* 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.
|
|
|
|
|
|
|
|
*/
|
|
|
|
#ifndef __GSECRET_PRIVATE_H__
|
|
|
|
#define __GSECRET_PRIVATE_H__
|
|
|
|
|
|
|
|
#include <gio/gio.h>
|
|
|
|
|
|
|
|
#include "gsecret-service.h"
|
|
|
|
#include "gsecret-value.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2011-11-12 07:08:12 +00:00
|
|
|
typedef struct {
|
|
|
|
GVariant *in;
|
|
|
|
GVariant *out;
|
|
|
|
GCancellable *cancellable;
|
|
|
|
} GSecretParams;
|
|
|
|
|
2011-09-25 16:39:03 +00:00
|
|
|
#define GSECRET_SERVICE_PATH "/org/freedesktop/secrets"
|
|
|
|
|
|
|
|
#define GSECRET_SERVICE_BUS_NAME "org.freedesktop.Secret.Service"
|
|
|
|
|
|
|
|
#define GSECRET_SERVICE_INTERFACE "org.freedesktop.Secret.Service"
|
|
|
|
|
2011-09-25 06:22:36 +00:00
|
|
|
#define GSECRET_COLLECTION_INTERFACE "org.freedesktop.Secret.Collection"
|
|
|
|
|
2011-11-12 07:08:12 +00:00
|
|
|
GSecretParams * _gsecret_params_new (GCancellable *cancellable,
|
|
|
|
GVariant *in);
|
|
|
|
|
|
|
|
void _gsecret_params_free (gpointer data);
|
|
|
|
|
2011-09-25 06:22:36 +00:00
|
|
|
gchar * _gsecret_util_parent_path (const gchar *path);
|
|
|
|
|
2011-11-05 20:50:01 +00:00
|
|
|
GVariant * _gsecret_util_variant_for_attributes (GHashTable *attributes);
|
|
|
|
|
2011-09-25 16:39:03 +00:00
|
|
|
GSecretService * _gsecret_service_bare_instance (GDBusConnection *connection,
|
|
|
|
const gchar *bus_name);
|
|
|
|
|
2011-09-25 06:22:36 +00:00
|
|
|
GVariant * _gsecret_service_encode_secret (GSecretService *self,
|
|
|
|
GSecretValue *value);
|
|
|
|
|
|
|
|
GSecretValue * _gsecret_service_decode_secret (GSecretService *service,
|
|
|
|
GVariant *encoded);
|
|
|
|
|
2011-09-25 16:39:03 +00:00
|
|
|
const gchar * _gsecret_service_ensure_session_finish (GSecretService *self,
|
|
|
|
GAsyncResult *result,
|
|
|
|
GCancellable **cancellable,
|
|
|
|
GError **error);
|
2011-09-25 06:22:36 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __G_SERVICE_H___ */
|