]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
mysql: Fix mysql_init binding.
authorEvan Nemerson <evan@coeus-group.com>
Wed, 13 Jan 2010 17:55:04 +0000 (09:55 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Wed, 13 Jan 2010 18:03:54 +0000 (10:03 -0800)
Fixes bug 603085.

vapi/mysql.vapi

index 8843068f41850fcb7bba29b70ec3aced5551652c..8e21ac01b541b140ee9b02977d05fbcbae4ee6a3 100644 (file)
@@ -26,8 +26,8 @@ namespace Mysql {
        [Compact]
        [CCode (free_function = "mysql_close", cname = "MYSQL", cprefix = "mysql_")]
        public class Database {
-               [CCode (argument0 = "NULL", cname = "mysql_init")]
-               public void init ();
+               [CCode (cname = "mysql_init")]
+               public Database (Database? mysql = null);
 
                public ulong affected_rows ();
                public bool autocommit (bool mode);