]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Fix GIConv binding.
authorFrederik Zipp <fzipp@gmx.de>
Tue, 3 Aug 2010 09:51:14 +0000 (11:51 +0200)
committerLuca Bruno <lethalman88@gmail.com>
Thu, 5 Aug 2010 07:32:18 +0000 (09:32 +0200)
vapi/glib-2.0.vapi

index 3099817fa26a5dcc2b82b85968e7240051b6c376..0ff1c54db6322509bcc19819633ff8880b123148 100644 (file)
@@ -1966,9 +1966,9 @@ namespace GLib {
        public static string convert (string str, ssize_t len, string to_codeset, string from_codeset, out size_t bytes_read = null, out size_t bytes_written = null) throws ConvertError;
        public static bool get_charset (out unowned string charset);
 
+       [SimpleType]
        public struct IConv {
-               [CCode (cname = "g_iconv_open")]
-               public IConv (string to_codeset, string from_codeset);
+               public static IConv open (string to_codeset, string from_codeset);
                [CCode (cname = "g_iconv")]
                public uint iconv (out string inbuf, out uint inbytes_left, out string outbuf, out uint outbytes_left);
                public int close ();