1 /* libsecret - GLib wrapper for Secret Service
3 * Copyright 2011 Collabora Ltd.
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation; either version 2.1 of the licence or (at
8 * your option) any later version.
10 * See the included COPYING file for more information.
12 * Author: Stef Walter <stefw@gnome.org>
15 #if !defined (__SECRET_INSIDE_HEADER__) && !defined (SECRET_COMPILATION)
16 #error "Only <libsecret/secret.h> or <libsecret/secret-unstable.h> can be included directly."
19 #ifndef __SECRET_PROMPT_H__
20 #define __SECRET_PROMPT_H__
24 #include "secret-types.h"
28 #define SECRET_TYPE_PROMPT (secret_prompt_get_type ())
29 #define SECRET_PROMPT(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), SECRET_TYPE_PROMPT, SecretPrompt))
30 #define SECRET_PROMPT_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), SECRET_TYPE_PROMPT, SecretPromptClass))
31 #define SECRET_IS_PROMPT(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), SECRET_TYPE_PROMPT))
32 #define SECRET_IS_PROMPT_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), SECRET_TYPE_PROMPT))
33 #define SECRET_PROMPT_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), SECRET_TYPE_PROMPT, SecretPromptClass))
35 typedef struct _SecretPromptClass SecretPromptClass;
36 typedef struct _SecretPromptPrivate SecretPromptPrivate;
38 struct _SecretPrompt {
39 GDBusProxy parent_instance;
42 SecretPromptPrivate *pv;
45 struct _SecretPromptClass {
46 GDBusProxyClass parent_class;
52 GType secret_prompt_get_type (void) G_GNUC_CONST;
54 GVariant * secret_prompt_run (SecretPrompt *self,
56 GCancellable *cancellable,
57 const GVariantType *return_type,
60 GVariant * secret_prompt_perform_sync (SecretPrompt *self,
62 GCancellable *cancellable,
63 const GVariantType *return_type,
66 void secret_prompt_perform (SecretPrompt *self,
68 GCancellable *cancellable,
69 GAsyncReadyCallback callback,
72 GVariant * secret_prompt_perform_finish (SecretPrompt *self,
74 const GVariantType *return_type,
79 #endif /* __SECRET_PROMPT_H___ */