From 1e697f6796b24afb23fe64626c099d5794f7dac6 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 25 Jun 2012 14:12:00 +0200 Subject: [PATCH] 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(+) 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 = ¬e_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 @@ -25,6 +25,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.