summaryrefslogtreecommitdiff
path: root/library/secret-schemas.c
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-03-18 13:45:54 +0100
committerStef Walter <stefw@gnome.org>2012-03-18 15:42:08 +0100
commit65969cf82ef3082bff5d721a90cf60f61a3a36e3 (patch)
tree20a5766a37add7d07d292071ce6dba9db2dea0b1 /library/secret-schemas.c
parent966c1da87b150cc3935d878255c0e978ad3bee6c (diff)
downloadlibsecret-65969cf82ef3082bff5d721a90cf60f61a3a36e3.tar.gz
WIP schemas
Diffstat (limited to 'library/secret-schemas.c')
-rw-r--r--library/secret-schemas.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/library/secret-schemas.c b/library/secret-schemas.c
new file mode 100644
index 0000000..ad6056b
--- /dev/null
+++ b/library/secret-schemas.c
@@ -0,0 +1,31 @@
+/* libsecret - GLib wrapper for Secret Service
+ *
+ * Copyright 2012 Stef Walter
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation; either version 2 of the licence or (at
+ * your option) any later version.
+ *
+ * See the included COPYING file for more information.
+ */
+
+#include "config.h"
+
+#include "secret-schema.h"
+
+static const SecretSchema network_schema = {
+ "org.gnome.keyring.NetworkPassword",
+ SECRET_SCHEMA_NONE,
+ {
+ { "user", SECRET_SCHEMA_ATTRIBUTE_STRING },
+ { "domain", SECRET_SCHEMA_ATTRIBUTE_STRING },
+ { "object", SECRET_SCHEMA_ATTRIBUTE_STRING },
+ { "protocol", SECRET_SCHEMA_ATTRIBUTE_STRING },
+ { "port", SECRET_SCHEMA_ATTRIBUTE_INTEGER },
+ { "server", SECRET_SCHEMA_ATTRIBUTE_STRING },
+ { "NULL", 0 },
+ }
+};
+
+const SecretSchema * SECRET_SCHEMA_COMPAT_NETWORK = &network_schema;