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