[libgnome-keyring] Add GnomePasswordSchemaAttribute type



commit eea24c2445a953b96c7830c7927f2fa3d48b0272
Author: Evan Nemerson <evan coeus-group com>
Date:   Mon Jan 23 02:07:34 2012 -0800

    Add GnomePasswordSchemaAttribute type
    
    https://bugzilla.gnome.org/show_bug.cgi?id=668466

 library/gnome-keyring.c |    1 +
 library/gnome-keyring.h |   12 ++++++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/library/gnome-keyring.c b/library/gnome-keyring.c
index ccd7019..6d1c292 100644
--- a/library/gnome-keyring.c
+++ b/library/gnome-keyring.c
@@ -4659,6 +4659,7 @@ gnome_keyring_set_network_password_sync (const char                            *
 /**
  * GnomeKeyringPasswordSchema:
  * @item_type: The item type for this schema.
+ * @attributes: (type GnomeKeyringPasswordSchemaAttribute) (array fixed-size=32): list of attributes
  *
  * Describes a password schema. Often you'll want to use a predefined schema such
  * as %GNOME_KEYRING_NETWORK_PASSWORD.
diff --git a/library/gnome-keyring.h b/library/gnome-keyring.h
index f085a42..37dd68b 100644
--- a/library/gnome-keyring.h
+++ b/library/gnome-keyring.h
@@ -342,6 +342,18 @@ time_t                gnome_keyring_item_info_get_ctime        (GnomeKeyringItem
  * A Simpler API
  */
 
+/*
+ * This structure exists to help languages which have difficulty with
+ * anonymous structures and is the same as the anonymous struct which
+ * is defined in GnomeKeyringPasswordSchema, but it cannot be used
+ * directly in GnomeKeyringPasswordSchema for API compatibility
+ * reasons.
+ */
+typedef struct {
+	const gchar* name;
+	GnomeKeyringAttributeType type;
+} GnomeKeyringPasswordSchemaAttribute;
+
 typedef struct {
 	GnomeKeyringItemType item_type;
 	struct {



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