~ubuntu-branches/ubuntu/natty/gnome-keyring/natty

« back to all changes in this revision

Viewing changes to daemon/dbus/gkd-secret-create.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-02-16 19:00:06 UTC
  • mfrom: (1.1.58 upstream)
  • Revision ID: james.westby@ubuntu.com-20100216190006-cqpnic4zxlkmmi0o
Tags: 2.29.90git20100218-0ubuntu1
Updated to a git snapshot version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * gnome-keyring
 
3
 *
 
4
 * Copyright (C) 2009 Stefan Walter
 
5
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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
 
19
 * 02111-1307, USA.
 
20
 */
 
21
 
 
22
#ifndef __GKD_SECRET_CREATE_H__
 
23
#define __GKD_SECRET_CREATE_H__
 
24
 
 
25
#include <glib-object.h>
 
26
 
 
27
#include "gkd-secret-prompt.h"
 
28
#include "gkd-secret-types.h"
 
29
 
 
30
#include "gp11/gp11.h"
 
31
 
 
32
#define GKD_SECRET_TYPE_CREATE               (gkd_secret_create_get_type ())
 
33
#define GKD_SECRET_CREATE(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GKD_SECRET_TYPE_CREATE, GkdSecretCreate))
 
34
#define GKD_SECRET_CREATE_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), GKD_SECRET_TYPE_CREATE, GkdSecretCreateClass))
 
35
#define GKD_SECRET_IS_CREATE(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GKD_SECRET_TYPE_CREATE))
 
36
#define GKD_SECRET_IS_CREATE_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GKD_SECRET_TYPE_CREATE))
 
37
#define GKD_SECRET_CREATE_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), GKD_SECRET_TYPE_CREATE, GkdSecretCreateClass))
 
38
 
 
39
typedef struct _GkdSecretCreateClass GkdSecretCreateClass;
 
40
 
 
41
struct _GkdSecretCreateClass {
 
42
        GkdSecretPromptClass parent_class;
 
43
};
 
44
 
 
45
GType               gkd_secret_create_get_type                (void);
 
46
 
 
47
GkdSecretCreate*    gkd_secret_create_new                     (GkdSecretService *service,
 
48
                                                               const gchar *caller,
 
49
                                                               GP11Attributes *attrs);
 
50
 
 
51
GP11Object*         gkd_secret_create_with_credential         (GP11Session *session,
 
52
                                                               GP11Attributes *attrs,
 
53
                                                               GP11Object *cred,
 
54
                                                               GError **error);
 
55
 
 
56
gchar*              gkd_secret_create_with_secret             (GP11Attributes *attrs,
 
57
                                                               GkdSecretSecret *master,
 
58
                                                               DBusError *derr);
 
59
 
 
60
#endif /* __GKD_SECRET_CREATE_H__ */