[libsecret] Add SECRET_SCHEMA_NOTE



commit 1e697f6796b24afb23fe64626c099d5794f7dac6
Author: Stef Walter <stefw gnome org>
Date:   Mon Jun 25 14:12:00 2012 +0200

    Add SECRET_SCHEMA_NOTE
    
     * A real simple schema for stuff stored by the user.
     * No attributes

 library/secret-schemas.c |   11 +++++++++++
 library/secret-schemas.h |    5 +++++
 2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/library/secret-schemas.c b/library/secret-schemas.c
index 98fb3a5..5f10a1a 100644
--- a/library/secret-schemas.c
+++ b/library/secret-schemas.c
@@ -16,6 +16,17 @@
 
 #include "secret-schema.h"
 
+static const SecretSchema note_schema = {
+	"org.gnome.keyring.Note",
+	SECRET_SCHEMA_DONT_MATCH_NAME,
+	{
+		{  "NULL", 0 },
+	}
+};
+
+const SecretSchema *  SECRET_SCHEMA_NOTE = &note_schema;
+
+
 static const SecretSchema network_schema = {
 	"org.gnome.keyring.NetworkPassword",
 	SECRET_SCHEMA_DONT_MATCH_NAME,
diff --git a/library/secret-schemas.h b/library/secret-schemas.h
index 44ee58b..82c5b28 100644
--- a/library/secret-schemas.h
+++ b/library/secret-schemas.h
@@ -26,6 +26,11 @@
 G_BEGIN_DECLS
 
 /*
+ * A note or password stored manually by the user.
+ */
+extern const SecretSchema *  SECRET_SCHEMA_NOTE;
+
+/*
  * This schema is here for compatibility with libgnome-keyring's network
  * password functions.
  */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]