1/* libsecret-1.vapi generated by vapigen-0.18 and hand-edited to add SCHEMA_COMPAT_NETWORK */
2
3[CCode (cprefix = "Secret", gir_namespace = "Secret", gir_version = "1", lower_case_cprefix = "secret_")]
4namespace Secret {
5	[CCode (cheader_filename = "libsecret/secret.h", cname = "SECRET_SCHEMA_COMPAT_NETWORK")]
6	public Secret.Schema SCHEMA_COMPAT_NETWORK;
7
8	[CCode (cheader_filename = "libsecret/secret.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "secret_schema_get_type ()")]
9	[Compact]
10	public class Schema {
11		[CCode (array_length = false, array_null_terminated = true)]
12		public weak Secret.SchemaAttribute[] attributes;
13		public Secret.SchemaFlags flags;
14		public weak string name;
15		[CCode (has_construct_function = false)]
16		public Schema (string name, Secret.SchemaFlags flags, ...);
17		[CCode (cname = "secret_schema_newv", has_construct_function = false)]
18		public Schema.newv (string name, Secret.SchemaFlags flags, GLib.HashTable<string,Secret.SchemaAttributeType> attribute_names_and_types);
19		public Secret.Schema @ref ();
20		public void unref ();
21	}
22	[CCode (cheader_filename = "libsecret/secret.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "secret_schema_attribute_get_type ()")]
23	[Compact]
24	public class SchemaAttribute {
25		public weak string name;
26		public Secret.SchemaAttributeType type;
27	}
28	[CCode (cheader_filename = "libsecret/secret.h", cprefix = "SECRET_ERROR_", has_type_id = false)]
29	public enum Error {
30		PROTOCOL,
31		IS_LOCKED,
32		NO_SUCH_OBJECT,
33		ALREADY_EXISTS;
34		public static GLib.Quark get_quark ();
35	}
36	[CCode (cheader_filename = "libsecret/secret.h", cprefix = "SECRET_SCHEMA_ATTRIBUTE_", has_type_id = false)]
37	public enum SchemaAttributeType {
38		STRING,
39		INTEGER,
40		BOOLEAN
41	}
42	[CCode (cheader_filename = "libsecret/secret.h", cprefix = "SECRET_SCHEMA_", has_type_id = false)]
43	[Flags]
44	public enum SchemaFlags {
45		NONE,
46		DONT_MATCH_NAME
47	}
48	[CCode (cheader_filename = "libsecret/secret.h", cname = "SECRET_COLLECTION_DEFAULT")]
49	public const string COLLECTION_DEFAULT;
50	[CCode (cheader_filename = "libsecret/secret.h", cname = "SECRET_COLLECTION_SESSION")]
51	public const string COLLECTION_SESSION;
52	[CCode (cheader_filename = "libsecret/secret.h")]
53	public static GLib.HashTable<string,string> attributes_build (Secret.Schema schema, ...);
54	[CCode (cheader_filename = "libsecret/secret.h")]
55	public static GLib.HashTable<string,string> attributes_buildv (Secret.Schema schema, va_list va);
56	[CCode (cheader_filename = "libsecret/secret.h")]
57	public static async bool password_clear (Secret.Schema schema, GLib.Cancellable? cancellable, ...) throws GLib.Error;
58	[CCode (cheader_filename = "libsecret/secret.h")]
59	public static bool password_clear_sync (Secret.Schema schema, GLib.Cancellable? cancellable = null, ...) throws GLib.Error;
60	[CCode (cheader_filename = "libsecret/secret.h", finish_name = "secret_password_clear_finish")]
61	public static async bool password_clearv (Secret.Schema schema, GLib.HashTable<string,string> attributes, GLib.Cancellable? cancellable) throws GLib.Error;
62	[CCode (cheader_filename = "libsecret/secret.h")]
63	public static bool password_clearv_sync (Secret.Schema schema, GLib.HashTable<string,string> attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
64	[CCode (cheader_filename = "libsecret/secret.h")]
65	public static async string password_lookup (Secret.Schema schema, GLib.Cancellable? cancellable, ...) throws GLib.Error;
66	[CCode (cheader_filename = "libsecret/secret.h")]
67	public static string password_lookup_sync (Secret.Schema schema, GLib.Cancellable? cancellable = null, ...) throws GLib.Error;
68	[CCode (cheader_filename = "libsecret/secret.h", finish_name = "secret_password_lookup_finish")]
69	public static async string password_lookupv (Secret.Schema schema, GLib.HashTable<string,string> attributes, GLib.Cancellable? cancellable) throws GLib.Error;
70	[CCode (cheader_filename = "libsecret/secret.h")]
71	public static string password_lookupv_sync (Secret.Schema schema, GLib.HashTable<string,string> attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
72	[CCode (cheader_filename = "libsecret/secret.h")]
73	public static async bool password_store (Secret.Schema schema, string? collection, string label, string password, GLib.Cancellable? cancellable, ...) throws GLib.Error;
74	[CCode (cheader_filename = "libsecret/secret.h")]
75	public static bool password_store_sync (Secret.Schema schema, string? collection, string label, string password, GLib.Cancellable? cancellable = null, ...) throws GLib.Error;
76	[CCode (cheader_filename = "libsecret/secret.h", finish_name = "secret_password_store_finish")]
77	public static async bool password_storev (Secret.Schema schema, GLib.HashTable<string,string> attributes, string? collection, string label, string password, GLib.Cancellable? cancellable) throws GLib.Error;
78	[CCode (cheader_filename = "libsecret/secret.h")]
79	public static bool password_storev_sync (Secret.Schema schema, GLib.HashTable<string,string> attributes, string? collection, string label, string password, GLib.Cancellable? cancellable = null) throws GLib.Error;
80	[CCode (cheader_filename = "libsecret/secret.h")]
81	public static void password_wipe (string? password);
82}
83