From: Jürg Billeter Date: Tue, 18 Aug 2009 15:39:29 +0000 (+0200) Subject: gnome-keyring-1: Fix GnomeKeyring.AttributeList binding X-Git-Tag: 0.7.6~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf10128eea439aef835dc66bbd7fb4d1887b32a3;p=thirdparty%2Fvala.git gnome-keyring-1: Fix GnomeKeyring.AttributeList binding --- diff --git a/vapi/gnome-keyring-1.vapi b/vapi/gnome-keyring-1.vapi index 87db857f7..5aa4b0f0d 100644 --- a/vapi/gnome-keyring-1.vapi +++ b/vapi/gnome-keyring-1.vapi @@ -16,7 +16,8 @@ namespace GnomeKeyring { [CCode (has_construct_function = false)] public ApplicationRef (); } - [CCode (ref_function = "gnome_keyring_attribute_list_ref", unref_function = "gnome_keyring_attribute_list_unref", cheader_filename = "gnome-keyring.h")] + [Compact] + [CCode (copy_function = "gnome_keyring_attribute_list_copy", cheader_filename = "gnome-keyring.h")] public class AttributeList { public GnomeKeyring.Attribute[] data; public uint len; @@ -24,6 +25,7 @@ namespace GnomeKeyring { public void append_uint32 (string name, uint32 value); public GnomeKeyring.AttributeList copy (); public GnomeKeyring.Attribute index (int i); + public AttributeList (); } [Compact] [CCode (cheader_filename = "gnome-keyring.h")] @@ -152,9 +154,9 @@ namespace GnomeKeyring { [CCode (cheader_filename = "gnome-keyring.h")] public delegate void OperationGetStringCallback (GnomeKeyring.Result result, string str); [CCode (cheader_filename = "gnome-keyring.h")] - public const string DEFAULT; + public static GnomeKeyring.PasswordSchema NETWORK_PASSWORD; [CCode (cheader_filename = "gnome-keyring.h")] - public const GnomeKeyring.PasswordSchema NETWORK_PASSWORD; + public const string DEFAULT; [CCode (cheader_filename = "gnome-keyring.h")] public const string SESSION; [CCode (cheader_filename = "gnome-keyring.h")] diff --git a/vapi/packages/gnome-keyring-1/gnome-keyring-1-custom.vala b/vapi/packages/gnome-keyring-1/gnome-keyring-1-custom.vala index c393c1198..25fcdd4ad 100644 --- a/vapi/packages/gnome-keyring-1/gnome-keyring-1-custom.vala +++ b/vapi/packages/gnome-keyring-1/gnome-keyring-1-custom.vala @@ -1,15 +1,17 @@ namespace GnomeKeyring { public const string DEFAULT; - public const GnomeKeyring.PasswordSchema NETWORK_PASSWORD; + public GnomeKeyring.PasswordSchema NETWORK_PASSWORD; [Compact] [CCode (free_function = "gnome_keyring_network_password_free")] public class NetworkPasswordData { } + [Compact] [CCode (free_function = "gnome_keyring_attribute_list_free")] public class AttributeList { + public extern AttributeList (); public extern Attribute index (int i); [NoArrayLength]