From: Frederik Zipp Date: Tue, 3 Aug 2010 09:51:14 +0000 (+0200) Subject: glib-2.0: Fix GIConv binding. X-Git-Tag: 0.9.5~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f3325388bc40ce1b36361b83a9c5cdfdc9226cc;p=thirdparty%2Fvala.git glib-2.0: Fix GIConv binding. --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 3099817fa..0ff1c54db 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -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 ();