]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gnome-keyring-1: Fix GnomeKeyring.AttributeList binding
authorJürg Billeter <j@bitron.ch>
Tue, 18 Aug 2009 15:39:29 +0000 (17:39 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 18 Aug 2009 15:43:10 +0000 (17:43 +0200)
vapi/gnome-keyring-1.vapi
vapi/packages/gnome-keyring-1/gnome-keyring-1-custom.vala

index 87db857f7286f2fb6bac1ce4c56f22319ccbf353..5aa4b0f0d56d9c33159808c26ddd0958fe066da5 100644 (file)
@@ -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")]
index c393c1198839604992be63ea6e3b9208a343cea4..25fcdd4ad7cbf40623530657b5d37fc6b18a4c33 100644 (file)
@@ -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]