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