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

Side by Side Diff: third_party/libsecret/secret-paths.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-password.h ('k') | third_party/libsecret/secret-prompt.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 * Copyright 2012 Red Hat Inc.
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 published
8 * by the Free Software Foundation; either version 2.1 of the licence or (at
9 * your option) any later version.
10 *
11 * See the included COPYING file for more information.
12 *
13 * Author: Stef Walter <stefw@gnome.org>
14 */
15
16 #if !defined (__SECRET_INSIDE_HEADER__) && !defined (SECRET_COMPILATION)
17 #error "Only <libsecret/secret.h> can be included directly."
18 #endif
19
20 #ifndef __SECRET_PATHS_H__
21 #define __SECRET_PATHS_H__
22
23 #include <gio/gio.h>
24
25 #include "secret-collection.h"
26 #include "secret-item.h"
27 #include "secret-prompt.h"
28 #include "secret-schema.h"
29 #include "secret-types.h"
30 #include "secret-value.h"
31
32 G_BEGIN_DECLS
33
34
35 void secret_collection_new_for_dbus_path (SecretSe rvice *service,
36 const gc har *collection_path,
37 SecretCo llectionFlags flags,
38 GCancell able *cancellable,
39 GAsyncRe adyCallback callback,
40 gpointer user_data);
41
42 SecretCollection * secret_collection_new_for_dbus_path_finish (GAsyncRe sult *result,
43 GError * *error);
44
45 SecretCollection * secret_collection_new_for_dbus_path_sync (SecretSe rvice *service,
46 const gc har *collection_path,
47 SecretCo llectionFlags flags,
48 GCancell able *cancellable,
49 GError * *error);
50
51 void secret_collection_search_for_dbus_paths (SecretCo llection *collection,
52 const Se cretSchema *schema,
53 GHashTab le *attributes,
54 GCancell able *cancellable,
55 GAsyncRe adyCallback callback,
56 gpointer user_data);
57
58 gchar ** secret_collection_search_for_dbus_paths_finish (SecretCo llection *collection,
59 GAsyncRe sult *result,
60 GError * *error);
61
62 gchar ** secret_collection_search_for_dbus_paths_sync (SecretCo llection *collection,
63 const Se cretSchema *schema,
64 GHashTab le *attributes,
65 GCancell able *cancellable,
66 GError * *error);
67
68 void secret_item_new_for_dbus_path (SecretSe rvice *service,
69 const gc har *item_path,
70 SecretIt emFlags flags,
71 GCancell able *cancellable,
72 GAsyncRe adyCallback callback,
73 gpointer user_data);
74
75 SecretItem * secret_item_new_for_dbus_path_finish (GAsyncRe sult *result,
76 GError * *error);
77
78 SecretItem * secret_item_new_for_dbus_path_sync (SecretSe rvice *service,
79 const gc har *item_path,
80 SecretIt emFlags flags,
81 GCancell able *cancellable,
82 GError * *error);
83
84 const gchar * secret_service_get_session_dbus_path (SecretSe rvice *self);
85
86 void secret_service_search_for_dbus_paths (SecretSe rvice *self,
87 const Se cretSchema *schema,
88 GHashTab le *attributes,
89 GCancell able *cancellable,
90 GAsyncRe adyCallback callback,
91 gpointer user_data);
92
93 gboolean secret_service_search_for_dbus_paths_finish (SecretSe rvice *self,
94 GAsyncRe sult *result,
95 gchar ** *unlocked,
96 gchar ** *locked,
97 GError * *error);
98
99 gboolean secret_service_search_for_dbus_paths_sync (SecretSe rvice *self,
100 const Se cretSchema *schema,
101 GHashTab le *attributes,
102 GCancell able *cancellable,
103 gchar ** *unlocked,
104 gchar ** *locked,
105 GError * *error);
106
107 void secret_service_get_secret_for_dbus_path (SecretSe rvice *self,
108 const gc har *item_path,
109 GCancell able *cancellable,
110 GAsyncRe adyCallback callback,
111 gpointer user_data);
112
113 SecretValue * secret_service_get_secret_for_dbus_path_finish (SecretSe rvice *self,
114 GAsyncRe sult *result,
115 GError * *error);
116
117 SecretValue * secret_service_get_secret_for_dbus_path_sync (SecretSe rvice *self,
118 const gc har *item_path,
119 GCancell able *cancellable,
120 GError * *error);
121
122 void secret_service_get_secrets_for_dbus_paths (SecretSe rvice *self,
123 const gc har **item_paths,
124 GCancell able *cancellable,
125 GAsyncRe adyCallback callback,
126 gpointer user_data);
127
128 GHashTable * secret_service_get_secrets_for_dbus_paths_finish (SecretSe rvice *self,
129 GAsyncRe sult *result,
130 GError * *error);
131
132 GHashTable * secret_service_get_secrets_for_dbus_paths_sync (SecretSe rvice *self,
133 const gc har **item_paths,
134 GCancell able *cancellable,
135 GError * *error);
136
137 gint secret_service_lock_dbus_paths_sync (SecretSe rvice *self,
138 const gc har **paths,
139 GCancell able *cancellable,
140 gchar ** *locked,
141 GError * *error);
142
143 void secret_service_lock_dbus_paths (SecretSe rvice *self,
144 const gc har **paths,
145 GCancell able *cancellable,
146 GAsyncRe adyCallback callback,
147 gpointer user_data);
148
149 gint secret_service_lock_dbus_paths_finish (SecretSe rvice *self,
150 GAsyncRe sult *result,
151 gchar ** *locked,
152 GError * *error);
153
154 gint secret_service_unlock_dbus_paths_sync (SecretSe rvice *self,
155 const gc har **paths,
156 GCancell able *cancellable,
157 gchar ** *unlocked,
158 GError * *error);
159
160 void secret_service_unlock_dbus_paths (SecretSe rvice *self,
161 const gc har **paths,
162 GCancell able *cancellable,
163 GAsyncRe adyCallback callback,
164 gpointer user_data);
165
166 gint secret_service_unlock_dbus_paths_finish (SecretSe rvice *self,
167 GAsyncRe sult *result,
168 gchar ** *unlocked,
169 GError * *error);
170
171 GVariant * secret_service_prompt_at_dbus_path_sync (SecretSe rvice *self,
172 const gc har *prompt_path,
173 GCancell able *cancellable,
174 const GV ariantType *return_type,
175 GError * *error);
176
177 void secret_service_prompt_at_dbus_path (SecretSe rvice *self,
178 const gc har *prompt_path,
179 const GV ariantType *return_type,
180 GCancell able *cancellable,
181 GAsyncRe adyCallback callback,
182 gpointer user_data);
183
184 GVariant * secret_service_prompt_at_dbus_path_finish (SecretSe rvice *self,
185 GAsyncRe sult *result,
186 GError * *error);
187
188 void secret_service_delete_item_dbus_path (SecretSe rvice *self,
189 const gc har *item_path,
190 GCancell able *cancellable,
191 GAsyncRe adyCallback callback,
192 gpointer user_data);
193
194 gboolean secret_service_delete_item_dbus_path_finish (SecretSe rvice *self,
195 GAsyncRe sult *result,
196 GError * *error);
197
198 gboolean secret_service_delete_item_dbus_path_sync (SecretSe rvice *self,
199 const gc har *item_path,
200 GCancell able *cancellable,
201 GError * *error);
202
203 void secret_service_create_collection_dbus_path (SecretSe rvice *self,
204 GHashTab le *properties,
205 const gc har *alias,
206 SecretCo llectionCreateFlags flags,
207 GCancell able *cancellable,
208 GAsyncRe adyCallback callback,
209 gpointer user_data);
210
211 gchar * secret_service_create_collection_dbus_path_finish (SecretSe rvice *self,
212 GAsyncRe sult *result,
213 GError * *error);
214
215 gchar * secret_service_create_collection_dbus_path_sync (SecretSe rvice *self,
216 GHashTab le *properties,
217 const gc har *alias,
218 SecretCo llectionCreateFlags flags,
219 GCancell able *cancellable,
220 GError * *error);
221
222 void secret_service_create_item_dbus_path (SecretSe rvice *self,
223 const gc har *collection_path,
224 GHashTab le *properties,
225 SecretVa lue *value,
226 SecretIt emCreateFlags flags,
227 GCancell able *cancellable,
228 GAsyncRe adyCallback callback,
229 gpointer user_data);
230
231 gchar * secret_service_create_item_dbus_path_finish (SecretSe rvice *self,
232 GAsyncRe sult *result,
233 GError * *error);
234
235 gchar * secret_service_create_item_dbus_path_sync (SecretSe rvice *self,
236 const gc har *collection_path,
237 GHashTab le *properties,
238 SecretVa lue *value,
239 SecretIt emCreateFlags flags,
240 GCancell able *cancellable,
241 GError * *error);
242
243 void secret_service_read_alias_dbus_path (SecretSe rvice *self,
244 const gc har *alias,
245 GCancell able *cancellable,
246 GAsyncRe adyCallback callback,
247 gpointer user_data);
248
249 gchar * secret_service_read_alias_dbus_path_finish (SecretSe rvice *self,
250 GAsyncRe sult *result,
251 GError * *error);
252
253 gchar * secret_service_read_alias_dbus_path_sync (SecretSe rvice *self,
254 const gc har *alias,
255 GCancell able *cancellable,
256 GError * *error);
257
258 void secret_service_set_alias_to_dbus_path (SecretSe rvice *self,
259 const gc har *alias,
260 const gc har *collection_path,
261 GCancell able *cancellable,
262 GAsyncRe adyCallback callback,
263 gpointer user_data);
264
265 gboolean secret_service_set_alias_to_dbus_path_finish (SecretSe rvice *self,
266 GAsyncRe sult *result,
267 GError * *error);
268
269 gboolean secret_service_set_alias_to_dbus_path_sync (SecretSe rvice *self,
270 const gc har *alias,
271 const gc har *collection_path,
272 GCancell able *cancellable,
273 GError * *error);
274
275 GVariant * secret_service_encode_dbus_secret (SecretSe rvice *service,
276 SecretVa lue *value);
277
278 SecretValue * secret_service_decode_dbus_secret (SecretSe rvice *service,
279 GVariant *value);
280
281 G_END_DECLS
282
283 #endif /* __SECRET_SERVICE_H___ */
OLDNEW
« no previous file with comments | « third_party/libsecret/secret-password.h ('k') | third_party/libsecret/secret-prompt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698