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 __GKD_SECRET_SERVICE_H__
23
#define __GKD_SECRET_SERVICE_H__
25
#include "gkd-secret-types.h"
27
#include "gp11/gp11.h"
29
#include <dbus/dbus.h>
31
#include <glib-object.h>
33
#define GKD_SECRET_TYPE_SERVICE (gkd_secret_service_get_type ())
34
#define GKD_SECRET_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GKD_SECRET_TYPE_SERVICE, GkdSecretService))
35
#define GKD_SECRET_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GKD_SECRET_TYPE_SERVICE, GkdSecretServiceClass))
36
#define GKD_SECRET_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GKD_SECRET_TYPE_SERVICE))
37
#define GKD_SECRET_IS_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GKD_SECRET_TYPE_SERVICE))
38
#define GKD_SECRET_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GKD_SECRET_TYPE_SERVICE, GkdSecretServiceClass))
40
typedef struct _GkdSecretServiceClass GkdSecretServiceClass;
42
struct _GkdSecretServiceClass {
43
GObjectClass parent_class;
46
GType gkd_secret_service_get_type (void);
48
DBusConnection* gkd_secret_service_get_connection (GkdSecretService *self);
50
GP11Slot* gkd_secret_service_get_pkcs11_slot (GkdSecretService *self);
52
GP11Session* gkd_secret_service_get_pkcs11_session (GkdSecretService *self,
55
GkdSecretObjects* gkd_secret_service_get_objects (GkdSecretService *self);
57
GkdSecretIndex* gkd_secret_service_get_index (GkdSecretService *self);
59
GkdSecretSession* gkd_secret_service_lookup_session (GkdSecretService *self,
63
void gkd_secret_service_close_session (GkdSecretService *self,
64
GkdSecretSession *sess);
66
void gkd_secret_service_send (GkdSecretService *self,
67
DBusMessage *message);
69
#endif /* ___SECRET_SERVICE_H__ */