Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: third_party/libsecret/secret-password.h

Issue 1922563002: Created BUILD.gn for libsecret (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected source set Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/libsecret/secret-item.h ('k') | third_party/libsecret/secret-paths.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* libsecret - GLib wrapper for Secret Service
2 *
3 * Copyright 2011 Collabora Ltd.
4 *
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.
9 *
10 * See the included COPYING file for more information.
11 *
12 * Author: Stef Walter <stefw@gnome.org>
13 */
14
15 #if !defined (__SECRET_INSIDE_HEADER__) && !defined (SECRET_COMPILATION)
16 #error "Only <libsecret/secret.h> can be included directly."
17 #endif
18
19 #ifndef __SECRET_PASSWORD_H__
20 #define __SECRET_PASSWORD_H__
21
22 #include <gio/gio.h>
23
24 G_BEGIN_DECLS
25
26 #include "secret-schema.h"
27 #include "secret-types.h"
28
29 void secret_password_store (const SecretSchema *sche ma,
30 const gchar *collection,
31 const gchar *label,
32 const gchar *password,
33 GCancellable *cancellabl e,
34 GAsyncReadyCallback call back,
35 gpointer user_data,
36 ...) G_GNUC_NULL_TERMINA TED;
37
38 void secret_password_storev (const SecretSchema *sche ma,
39 GHashTable *attributes,
40 const gchar *collection,
41 const gchar *label,
42 const gchar *password,
43 GCancellable *cancellabl e,
44 GAsyncReadyCallback call back,
45 gpointer user_data);
46
47 gboolean secret_password_store_finish (GAsyncResult *result,
48 GError **error);
49
50 gboolean secret_password_store_sync (const SecretSchema *sche ma,
51 const gchar *collection,
52 const gchar *label,
53 const gchar *password,
54 GCancellable *cancellabl e,
55 GError **error,
56 ...) G_GNUC_NULL_TERMINA TED;
57
58 gboolean secret_password_storev_sync (const SecretSchema *sche ma,
59 GHashTable *attributes,
60 const gchar *collection,
61 const gchar *label,
62 const gchar *password,
63 GCancellable *cancellabl e,
64 GError **error);
65
66 void secret_password_lookup (const SecretSchema *sche ma,
67 GCancellable *cancellabl e,
68 GAsyncReadyCallback call back,
69 gpointer user_data,
70 ...) G_GNUC_NULL_TERMINA TED;
71
72 void secret_password_lookupv (const SecretSchema *sche ma,
73 GHashTable *attributes,
74 GCancellable *cancellabl e,
75 GAsyncReadyCallback call back,
76 gpointer user_data);
77
78 gchar * secret_password_lookup_finish (GAsyncResult *result,
79 GError **error);
80
81 gchar * secret_password_lookup_nonpageable_finish (GAsyncResult *result,
82 GError **error);
83
84 gchar * secret_password_lookup_sync (const SecretSchema *sche ma,
85 GCancellable *cancellabl e,
86 GError **error,
87 ...) G_GNUC_NULL_TERMINA TED;
88
89 gchar * secret_password_lookup_nonpageable_sync (const SecretSchema *sche ma,
90 GCancellable *cancellabl e,
91 GError **error,
92 ...);
93
94 gchar * secret_password_lookupv_sync (const SecretSchema *sche ma,
95 GHashTable *attributes,
96 GCancellable *cancellabl e,
97 GError **error);
98
99 gchar * secret_password_lookupv_nonpageable_sync (const SecretSchema *sche ma,
100 GHashTable *attributes,
101 GCancellable *cancellabl e,
102 GError **error);
103
104 void secret_password_clear (const SecretSchema *sche ma,
105 GCancellable *cancellabl e,
106 GAsyncReadyCallback call back,
107 gpointer user_data,
108 ...) G_GNUC_NULL_TERMINA TED;
109
110 void secret_password_clearv (const SecretSchema *sche ma,
111 GHashTable *attributes,
112 GCancellable *cancellabl e,
113 GAsyncReadyCallback call back,
114 gpointer user_data);
115
116 gboolean secret_password_clear_finish (GAsyncResult *result,
117 GError **error);
118
119 gboolean secret_password_clear_sync (const SecretSchema* sche ma,
120 GCancellable *cancellabl e,
121 GError **error,
122 ...) G_GNUC_NULL_TERMINA TED;
123
124 gboolean secret_password_clearv_sync (const SecretSchema *sche ma,
125 GHashTable *attributes,
126 GCancellable *cancellabl e,
127 GError **error);
128
129 void secret_password_free (gchar *password);
130
131 void secret_password_wipe (gchar *password);
132
133 G_END_DECLS
134
135 #endif /* __SECRET_PASSWORD_H___ */
OLDNEW
« no previous file with comments | « third_party/libsecret/secret-item.h ('k') | third_party/libsecret/secret-paths.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698