4
* Copyright (C) 2009 Stefan Walter
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU Lesser General Public License as
8
* published by the Free Software Foundation; either version 2.1 of
9
* the License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22
#ifndef __GCK_SECRET_DATA_H__
23
#define __GCK_SECRET_DATA_H__
25
#include <glib-object.h>
27
#include "gck-secret-types.h"
29
#include "gck/gck-types.h"
31
#define GCK_TYPE_SECRET_DATA (gck_secret_data_get_type ())
32
#define GCK_SECRET_DATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCK_TYPE_SECRET_DATA, GckSecretData))
33
#define GCK_SECRET_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCK_TYPE_SECRET_DATA, GckSecretDataClass))
34
#define GCK_IS_SECRET_DATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCK_TYPE_SECRET_DATA))
35
#define GCK_IS_SECRET_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCK_TYPE_SECRET_DATA))
36
#define GCK_SECRET_DATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCK_TYPE_SECRET_DATA, GckSecretDataClass))
38
typedef struct _GckSecretDataClass GckSecretDataClass;
40
struct _GckSecretDataClass {
41
GObjectClass parent_class;
44
GType gck_secret_data_get_type (void);
46
GckSecret* gck_secret_data_get_secret (GckSecretData *self,
47
const gchar *identifier);
49
const guchar* gck_secret_data_get_raw (GckSecretData *self,
50
const gchar *identifier,
53
void gck_secret_data_set_secret (GckSecretData *self,
54
const gchar *identifier,
57
void gck_secret_data_set_transacted (GckSecretData *self,
58
GckTransaction *transaction,
59
const gchar *identifier,
62
void gck_secret_data_remove_secret (GckSecretData *self,
63
const gchar *identifier);
65
GckSecret* gck_secret_data_get_master (GckSecretData *self);
67
void gck_secret_data_set_master (GckSecretData *self,
70
#endif /* __GCK_SECRET_DATA_H__ */