Update THANKS from git log
[vala-lang.git] / vapi / gnome-keyring-1.vapi
blobcd37c2bad61dcc9b6cb8d69168e75f5e30688a1a
1 /* gnome-keyring-1.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "GnomeKeyring", lower_case_cprefix = "gnome_keyring_")]
4 namespace GnomeKeyring {
5         [Compact]
6         [CCode (copy_function = "gnome_keyring_access_control_copy", cheader_filename = "gnome-keyring.h")]
7         public class AccessControl {
8                 [CCode (has_construct_function = false)]
9                 public AccessControl (GnomeKeyring.ApplicationRef application, GnomeKeyring.AccessType types_allowed);
10                 public GnomeKeyring.AccessControl copy ();
11         }
12         [Compact]
13         [CCode (copy_function = "gnome_keyring_application_ref_copy", cheader_filename = "gnome-keyring.h")]
14         public class ApplicationRef {
15                 [CCode (has_construct_function = false)]
16                 public ApplicationRef ();
17                 public GnomeKeyring.ApplicationRef copy ();
18         }
19         [Compact]
20         [CCode (copy_function = "gnome_keyring_attribute_list_copy", cheader_filename = "gnome-keyring.h")]
21         public class AttributeList {
22                 [CCode (array_length = false)]
23                 public GnomeKeyring.Attribute[] data;
24                 public uint len;
25                 public AttributeList ();
26                 public void append_string (string name, string value);
27                 public void append_uint32 (string name, uint32 value);
28                 public GnomeKeyring.AttributeList copy ();
29                 public GnomeKeyring.Attribute index (int i);
30         }
31         [Compact]
32         [CCode (cheader_filename = "gnome-keyring.h")]
33         public class Found {
34                 public weak GnomeKeyring.AttributeList attributes;
35                 public uint item_id;
36                 public weak string keyring;
37                 public weak string secret;
38                 public static void list_free (GLib.List found_list);
39         }
40         [Compact]
41         [CCode (copy_function = "gnome_keyring_info_copy", cheader_filename = "gnome-keyring.h")]
42         public class Info {
43                 public GnomeKeyring.Info copy ();
44                 public ulong get_ctime ();
45                 public bool get_is_locked ();
46                 public bool get_lock_on_idle ();
47                 public uint32 get_lock_timeout ();
48                 public ulong get_mtime ();
49                 public void set_lock_on_idle (bool value);
50                 public void set_lock_timeout (uint32 value);
51         }
52         [Compact]
53         [CCode (copy_function = "gnome_keyring_item_info_copy", cheader_filename = "gnome-keyring.h")]
54         public class ItemInfo {
55                 [CCode (has_construct_function = false)]
56                 public ItemInfo ();
57                 public GnomeKeyring.ItemInfo copy ();
58                 public ulong get_ctime ();
59                 public unowned string get_display_name ();
60                 public ulong get_mtime ();
61                 public unowned string get_secret ();
62                 public void set_display_name (string value);
63                 public void set_secret (string value);
64                 public void set_type (GnomeKeyring.ItemType type);
65         }
66         [Compact]
67         [CCode (free_function = "gnome_keyring_network_password_free", cheader_filename = "gnome-keyring.h")]
68         public class NetworkPasswordData {
69                 public weak string authtype;
70                 public weak string domain;
71                 public uint32 item_id;
72                 public weak string keyring;
73                 public weak string object;
74                 public weak string password;
75                 public uint32 port;
76                 public weak string protocol;
77                 public weak string server;
78                 public weak string user;
79         }
80         [Compact]
81         [CCode (cheader_filename = "gnome-keyring.h")]
82         public class PasswordSchema {
83                 public void* attributes;
84                 public GnomeKeyring.ItemType item_type;
85                 public void* reserved1;
86                 public void* reserved2;
87                 public void* reserved3;
88         }
89         [CCode (type_id = "GNOME_KEYRING_TYPE_ATTRIBUTE", cheader_filename = "gnome-keyring.h")]
90         public struct Attribute {
91                 public weak string name;
92                 public GnomeKeyring.AttributeType type;
93                 public void* value;
94         }
95         [CCode (cprefix = "GNOME_KEYRING_ACCESS_", has_type_id = false, cheader_filename = "gnome-keyring.h")]
96         public enum AccessRestriction {
97                 ASK,
98                 DENY,
99                 ALLOW
100         }
101         [CCode (cprefix = "GNOME_KEYRING_ACCESS_", has_type_id = false, cheader_filename = "gnome-keyring.h")]
102         public enum AccessType {
103                 READ,
104                 WRITE,
105                 REMOVE
106         }
107         [CCode (cprefix = "GNOME_KEYRING_ATTRIBUTE_TYPE_", has_type_id = false, cheader_filename = "gnome-keyring.h")]
108         public enum AttributeType {
109                 STRING,
110                 UINT32
111         }
112         [CCode (cprefix = "GNOME_KEYRING_ITEM_INFO_", has_type_id = false, cheader_filename = "gnome-keyring.h")]
113         public enum ItemInfoFlags {
114                 ALL,
115                 BASICS,
116                 SECRET
117         }
118         [CCode (cprefix = "GNOME_KEYRING_ITEM_", has_type_id = false, cheader_filename = "gnome-keyring.h")]
119         public enum ItemType {
120                 APPLICATION_SECRET,
121                 ITEM_TYPE_MASK,
122                 GENERIC_SECRET,
123                 NETWORK_PASSWORD,
124                 NOTE,
125                 CHAINED_KEYRING_PASSWORD,
126                 ENCRYPTION_KEY_PASSWORD,
127                 PK_STORAGE,
128                 LAST_TYPE
129         }
130         [CCode (cprefix = "GNOME_KEYRING_RESULT_", has_type_id = false, cheader_filename = "gnome-keyring.h")]
131         public enum Result {
132                 OK,
133                 DENIED,
134                 NO_KEYRING_DAEMON,
135                 ALREADY_UNLOCKED,
136                 NO_SUCH_KEYRING,
137                 BAD_ARGUMENTS,
138                 IO_ERROR,
139                 CANCELLED,
140                 KEYRING_ALREADY_EXISTS,
141                 NO_MATCH
142         }
143         [CCode (cheader_filename = "gnome-keyring.h")]
144         public delegate void OperationDoneCallback (GnomeKeyring.Result result);
145         [CCode (cheader_filename = "gnome-keyring.h")]
146         public delegate void OperationGetAttributesCallback (GnomeKeyring.Result result, GnomeKeyring.AttributeList attributes);
147         [CCode (cheader_filename = "gnome-keyring.h")]
148         public delegate void OperationGetIntCallback (GnomeKeyring.Result result, uint32 val);
149         [CCode (cheader_filename = "gnome-keyring.h")]
150         public delegate void OperationGetItemInfoCallback (GnomeKeyring.Result result, GnomeKeyring.ItemInfo info);
151         [CCode (cheader_filename = "gnome-keyring.h")]
152         public delegate void OperationGetKeyringInfoCallback (GnomeKeyring.Result result, GnomeKeyring.Info info);
153         [CCode (cheader_filename = "gnome-keyring.h")]
154         public delegate void OperationGetListCallback (GnomeKeyring.Result result, GLib.List list);
155         [CCode (cheader_filename = "gnome-keyring.h")]
156         public delegate void OperationGetStringCallback (GnomeKeyring.Result result, string str);
157         [CCode (cheader_filename = "gnome-keyring.h")]
158         public static GnomeKeyring.PasswordSchema NETWORK_PASSWORD;
159         [CCode (cheader_filename = "gnome-keyring.h")]
160         public const string DEFAULT;
161         [CCode (cheader_filename = "gnome-keyring.h")]
162         public const string SESSION;
163         [CCode (cheader_filename = "gnome-keyring.h")]
164         public static unowned GLib.List acl_copy (GLib.List list);
165         [CCode (cheader_filename = "gnome-keyring.h")]
166         public static void acl_free (GLib.List acl);
167         [CCode (cheader_filename = "gnome-keyring.h")]
168         public static void cancel_request (void* request);
169         [CCode (cheader_filename = "gnome-keyring.h")]
170         public static void* change_password (string keyring, string? original, string? password, owned GnomeKeyring.OperationDoneCallback callback);
171         [CCode (cheader_filename = "gnome-keyring.h")]
172         public static GnomeKeyring.Result change_password_sync (string keyring, string? original, string? password);
173         [CCode (cheader_filename = "gnome-keyring.h")]
174         public static void* create (string keyring_name, string? password, owned GnomeKeyring.OperationDoneCallback callback);
175         [CCode (cheader_filename = "gnome-keyring.h")]
176         public static GnomeKeyring.Result create_sync (string keyring_name, string? password);
177         [CCode (cheader_filename = "gnome-keyring.h")]
178         public static GnomeKeyring.Result daemon_prepare_environment_sync ();
179         [CCode (cheader_filename = "gnome-keyring.h")]
180         public static GnomeKeyring.Result daemon_set_display_sync (string display);
181         [CCode (cheader_filename = "gnome-keyring.h")]
182         public static void* @delete (string keyring, GnomeKeyring.OperationDoneCallback callback, void* data, GLib.DestroyNotify destroy_data);
183         [CCode (cheader_filename = "gnome-keyring.h")]
184         public static void* delete_password (GnomeKeyring.PasswordSchema schema, owned GnomeKeyring.OperationDoneCallback callback, ...);
185         [CCode (cheader_filename = "gnome-keyring.h")]
186         public static GnomeKeyring.Result delete_password_sync (GnomeKeyring.PasswordSchema schema, ...);
187         [CCode (cheader_filename = "gnome-keyring.h")]
188         public static GnomeKeyring.Result delete_sync (string keyring);
189         [CCode (cheader_filename = "gnome-keyring.h")]
190         public static void* find_items (GnomeKeyring.ItemType type, GnomeKeyring.AttributeList attributes, owned GnomeKeyring.OperationGetListCallback callback);
191         [CCode (cheader_filename = "gnome-keyring.h")]
192         public static GnomeKeyring.Result find_items_sync (GnomeKeyring.ItemType type, GnomeKeyring.AttributeList attributes, out GLib.List found);
193         [CCode (cheader_filename = "gnome-keyring.h")]
194         public static void* find_itemsv (GnomeKeyring.ItemType type, owned GnomeKeyring.OperationGetListCallback callback, ...);
195         [CCode (cheader_filename = "gnome-keyring.h")]
196         public static GnomeKeyring.Result find_itemsv_sync (GnomeKeyring.ItemType type, out GLib.List found, ...);
197         [CCode (cheader_filename = "gnome-keyring.h")]
198         public static void* find_network_password (string? user, string? domain, string? server, string? object, string? protocol, string? authtype, uint32 port, owned GnomeKeyring.OperationGetListCallback callback);
199         [CCode (cheader_filename = "gnome-keyring.h")]
200         public static GnomeKeyring.Result find_network_password_sync (string? user, string? domain, string? server, string? object, string? protocol, string? authtype, uint32 port, out unowned GLib.List results);
201         [CCode (cheader_filename = "gnome-keyring.h")]
202         public static void* find_password (GnomeKeyring.PasswordSchema schema, owned GnomeKeyring.OperationGetStringCallback callback, ...);
203         [CCode (cheader_filename = "gnome-keyring.h")]
204         public static GnomeKeyring.Result find_password_sync (GnomeKeyring.PasswordSchema schema, out unowned string password, ...);
205         [CCode (cheader_filename = "gnome-keyring.h")]
206         public static void free_password (string password);
207         [CCode (cheader_filename = "gnome-keyring.h")]
208         public static void* get_default_keyring (owned GnomeKeyring.OperationGetStringCallback callback);
209         [CCode (cheader_filename = "gnome-keyring.h")]
210         public static GnomeKeyring.Result get_default_keyring_sync (out unowned string keyring);
211         [CCode (cheader_filename = "gnome-keyring.h")]
212         public static void* get_info (string? keyring, owned GnomeKeyring.OperationGetKeyringInfoCallback callback);
213         [CCode (cheader_filename = "gnome-keyring.h")]
214         public static GnomeKeyring.Result get_info_sync (string? keyring, out unowned GnomeKeyring.Info info);
215         [CCode (cheader_filename = "gnome-keyring.h")]
216         public static bool is_available ();
217         [CCode (cheader_filename = "gnome-keyring.h")]
218         public static GnomeKeyring.AccessType item_ac_get_access_type (GnomeKeyring.AccessControl ac);
219         [CCode (cheader_filename = "gnome-keyring.h")]
220         public static unowned string item_ac_get_display_name (GnomeKeyring.AccessControl ac);
221         [CCode (cheader_filename = "gnome-keyring.h")]
222         public static unowned string item_ac_get_path_name (GnomeKeyring.AccessControl ac);
223         [CCode (cheader_filename = "gnome-keyring.h")]
224         public static void item_ac_set_access_type (GnomeKeyring.AccessControl ac, GnomeKeyring.AccessType value);
225         [CCode (cheader_filename = "gnome-keyring.h")]
226         public static void item_ac_set_display_name (GnomeKeyring.AccessControl ac, string value);
227         [CCode (cheader_filename = "gnome-keyring.h")]
228         public static void item_ac_set_path_name (GnomeKeyring.AccessControl ac, string value);
229         [CCode (cheader_filename = "gnome-keyring.h")]
230         public static void* item_create (string? keyring, GnomeKeyring.ItemType type, string display_name, GnomeKeyring.AttributeList attributes, string secret, bool update_if_exists, owned GnomeKeyring.OperationGetIntCallback callback);
231         [CCode (cheader_filename = "gnome-keyring.h")]
232         public static GnomeKeyring.Result item_create_sync (string? keyring, GnomeKeyring.ItemType type, string display_name, GnomeKeyring.AttributeList attributes, string secret, bool update_if_exists, out uint32 item_id);
233         [CCode (cheader_filename = "gnome-keyring.h")]
234         public static void* item_delete (string? keyring, uint32 id, owned GnomeKeyring.OperationDoneCallback callback);
235         [CCode (cheader_filename = "gnome-keyring.h")]
236         public static GnomeKeyring.Result item_delete_sync (string? keyring, uint32 id);
237         [CCode (cheader_filename = "gnome-keyring.h")]
238         public static void* item_get_acl (string? keyring, uint32 id, owned GnomeKeyring.OperationGetListCallback callback);
239         [CCode (cheader_filename = "gnome-keyring.h")]
240         public static GnomeKeyring.Result item_get_acl_sync (string? keyring, uint32 id, out GLib.List acl);
241         [CCode (cheader_filename = "gnome-keyring.h")]
242         public static void* item_get_attributes (string? keyring, uint32 id, owned GnomeKeyring.OperationGetAttributesCallback callback);
243         [CCode (cheader_filename = "gnome-keyring.h")]
244         public static GnomeKeyring.Result item_get_attributes_sync (string? keyring, uint32 id, out unowned GnomeKeyring.AttributeList attributes);
245         [CCode (cheader_filename = "gnome-keyring.h")]
246         public static void* item_get_info (string? keyring, uint32 id, owned GnomeKeyring.OperationGetItemInfoCallback callback);
247         [CCode (cheader_filename = "gnome-keyring.h")]
248         public static void* item_get_info_full (string? keyring, uint32 id, uint32 flags, owned GnomeKeyring.OperationGetItemInfoCallback callback);
249         [CCode (cheader_filename = "gnome-keyring.h")]
250         public static GnomeKeyring.Result item_get_info_full_sync (string? keyring, uint32 id, uint32 flags, out unowned GnomeKeyring.ItemInfo info);
251         [CCode (cheader_filename = "gnome-keyring.h")]
252         public static unowned GnomeKeyring.Result? item_get_info_sync (string keyring, uint32 id, out unowned GnomeKeyring.ItemInfo info);
253         [CCode (cheader_filename = "gnome-keyring.h")]
254         public static void* item_grant_access_rights (string? keyring, string display_name, string full_path, uint32 id, GnomeKeyring.AccessType rights, owned GnomeKeyring.OperationDoneCallback callback);
255         [CCode (cheader_filename = "gnome-keyring.h")]
256         public static GnomeKeyring.Result item_grant_access_rights_sync (string? keyring, string display_name, string full_path, uint32 id, GnomeKeyring.AccessType rights);
257         [CCode (cheader_filename = "gnome-keyring.h")]
258         public static void* item_set_acl (string? keyring, uint32 id, GLib.List acl, owned GnomeKeyring.OperationDoneCallback callback);
259         [CCode (cheader_filename = "gnome-keyring.h")]
260         public static GnomeKeyring.Result item_set_acl_sync (string? keyring, uint32 id, GLib.List acl);
261         [CCode (cheader_filename = "gnome-keyring.h")]
262         public static void* item_set_attributes (string? keyring, uint32 id, GnomeKeyring.AttributeList attributes, owned GnomeKeyring.OperationDoneCallback callback);
263         [CCode (cheader_filename = "gnome-keyring.h")]
264         public static GnomeKeyring.Result item_set_attributes_sync (string? keyring, uint32 id, GnomeKeyring.AttributeList attributes);
265         [CCode (cheader_filename = "gnome-keyring.h")]
266         public static void* item_set_info (string? keyring, uint32 id, GnomeKeyring.ItemInfo info, owned GnomeKeyring.OperationDoneCallback callback);
267         [CCode (cheader_filename = "gnome-keyring.h")]
268         public static GnomeKeyring.Result item_set_info_sync (string? keyring, uint32 id, GnomeKeyring.ItemInfo info);
269         [CCode (cheader_filename = "gnome-keyring.h")]
270         public static void* list_item_ids (string? keyring, owned GnomeKeyring.OperationGetListCallback callback);
271         [CCode (cheader_filename = "gnome-keyring.h")]
272         public static GnomeKeyring.Result list_item_ids_sync (string? keyring, out GLib.List<uint> ids);
273         [CCode (cheader_filename = "gnome-keyring.h")]
274         public static void* list_keyring_names (owned GnomeKeyring.OperationGetListCallback callback);
275         [CCode (cheader_filename = "gnome-keyring.h")]
276         public static GnomeKeyring.Result list_keyring_names_sync (GLib.List keyrings);
277         [CCode (cheader_filename = "gnome-keyring.h")]
278         public static void* @lock (string keyring, GnomeKeyring.OperationDoneCallback callback, void* data, GLib.DestroyNotify destroy_data);
279         [CCode (cheader_filename = "gnome-keyring.h")]
280         public static void* lock_all (owned GnomeKeyring.OperationDoneCallback callback);
281         [CCode (cheader_filename = "gnome-keyring.h")]
282         public static GnomeKeyring.Result lock_all_sync ();
283         [CCode (cheader_filename = "gnome-keyring.h")]
284         public static GnomeKeyring.Result lock_sync (string? keyring);
285         [CCode (cheader_filename = "gnome-keyring.h")]
286         public static void* memory_alloc (ulong sz);
287         [CCode (cheader_filename = "gnome-keyring.h")]
288         public static void memory_free (void* p);
289         [CCode (cheader_filename = "gnome-keyring.h")]
290         public static bool memory_is_secure (void* p);
291         [CCode (cheader_filename = "gnome-keyring.h")]
292         public static void* memory_realloc (void* p, ulong sz);
293         [CCode (cheader_filename = "gnome-keyring.h")]
294         public static unowned string memory_strdup (string str);
295         [CCode (cheader_filename = "gnome-keyring.h")]
296         public static void* memory_try_alloc (ulong sz);
297         [CCode (cheader_filename = "gnome-keyring.h")]
298         public static void* memory_try_realloc (void* p, ulong sz);
299         [CCode (cheader_filename = "gnome-keyring.h")]
300         public static void network_password_free (GnomeKeyring.NetworkPasswordData data);
301         [CCode (cheader_filename = "gnome-keyring.h")]
302         public static void network_password_list_free (GLib.List list);
303         [CCode (cheader_filename = "gnome-keyring.h")]
304         public static unowned string result_to_message (GnomeKeyring.Result res);
305         [CCode (cheader_filename = "gnome-keyring.h")]
306         public static void* set_default_keyring (string keyring, owned GnomeKeyring.OperationDoneCallback callback);
307         [CCode (cheader_filename = "gnome-keyring.h")]
308         public static GnomeKeyring.Result set_default_keyring_sync (string keyring);
309         [CCode (cheader_filename = "gnome-keyring.h")]
310         public static void* set_info (string? keyring, GnomeKeyring.Info info, owned GnomeKeyring.OperationDoneCallback callback);
311         [CCode (cheader_filename = "gnome-keyring.h")]
312         public static GnomeKeyring.Result set_info_sync (string? keyring, GnomeKeyring.Info info);
313         [CCode (cheader_filename = "gnome-keyring.h")]
314         public static void* set_network_password (string? keyring, string? user, string? domain, string? server, string? object, string? protocol, string? authtype, uint32 port, string? password, owned GnomeKeyring.OperationGetIntCallback callback);
315         [CCode (cheader_filename = "gnome-keyring.h")]
316         public static GnomeKeyring.Result set_network_password_sync (string? keyring, string? user, string? domain, string? server, string? object, string? protocol, string? authtype, uint32 port, string? password, out uint32 item_id);
317         [CCode (cheader_filename = "gnome-keyring.h")]
318         public static void* store_password (GnomeKeyring.PasswordSchema schema, string? keyring, string display_name, string password, owned GnomeKeyring.OperationDoneCallback callback, ...);
319         [CCode (cheader_filename = "gnome-keyring.h")]
320         public static GnomeKeyring.Result store_password_sync (GnomeKeyring.PasswordSchema schema, string keyring, string display_name, string password, ...);
321         [CCode (cheader_filename = "gnome-keyring.h")]
322         public static void string_list_free (GLib.List strings);
323         [CCode (cheader_filename = "gnome-keyring.h")]
324         public static void* unlock (string? keyring, string? password, owned GnomeKeyring.OperationDoneCallback callback);
325         [CCode (cheader_filename = "gnome-keyring.h")]
326         public static GnomeKeyring.Result unlock_sync (string? keyring, string? password);