From: Rico Tzschichholz Date: Mon, 21 Dec 2015 15:06:40 +0000 (+0100) Subject: vapi: Add gio-windows-2.0 X-Git-Tag: 0.31.1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c22bf9b8dbbaa99f590961592017c7c1e5701f07;p=thirdparty%2Fvala.git vapi: Add gio-windows-2.0 Includes some more g_win32 bindings and fixes. Fixes bug 650052 --- diff --git a/vapi/Makefile.am b/vapi/Makefile.am index cd66ae5fd..1bbffba64 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -74,6 +74,8 @@ dist_vapi_DATA = \ gio-2.0.vapi \ gio-unix-2.0.deps \ gio-unix-2.0.vapi \ + gio-windows-2.0.deps \ + gio-windows-2.0.vapi \ gmodule-2.0.vapi \ gnet-2.0.deps \ gnet-2.0.vapi \ diff --git a/vapi/gio-windows-2.0.deps b/vapi/gio-windows-2.0.deps new file mode 100644 index 000000000..cd10dfde4 --- /dev/null +++ b/vapi/gio-windows-2.0.deps @@ -0,0 +1 @@ +gio-2.0 diff --git a/vapi/gio-windows-2.0.vapi b/vapi/gio-windows-2.0.vapi new file mode 100644 index 000000000..4f6b7b368 --- /dev/null +++ b/vapi/gio-windows-2.0.vapi @@ -0,0 +1,23 @@ +/* gio-windows-2.0.vapi generated by vapigen, do not modify. */ + +[CCode (cprefix = "G", lower_case_cprefix = "g_")] +namespace GLib { + [CCode (cheader_filename = "gio/gwin32inputstream.h", type_id = "g_win32_input_stream_get_type ()")] + public class Win32InputStream : GLib.InputStream { + [CCode (has_construct_function = false, type = "GInputStream*")] + public Win32InputStream (void* handle, bool close_handle); + public bool get_close_handle (); + public void set_close_handle (bool close_handle); + public bool close_handle { get; set; } + public void* handle { get; construct; } + } + [CCode (cheader_filename = "gio/gwin32outputstream.h", type_id = "g_win32_output_stream_get_type ()")] + public class Win32OutputStream : GLib.OutputStream { + [CCode (has_construct_function = false, type = "GOutputStream*")] + public Win32OutputStream (void* handle, bool close_handle); + public bool get_close_handle (); + public void set_close_handle (bool close_handle); + public bool close_handle { get; set; } + public void* handle { get; construct; } + } +} diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index af183d685..e880fef73 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -4793,6 +4793,16 @@ namespace GLib { } namespace Win32 { + public enum OSType { + [CCode (cname = "G_WIN32_OS_ANY")] + ANY, + [CCode (cname = "G_WIN32_OS_WORKSTATION")] + WORKSTATION, + [CCode (cname = "G_WIN32_OS_SERVER")] + SERVER, + } + public bool check_windows_version (int major, int minor, int spver, GLib.Win32.OSType os_type); + public string error_message (int error); public string getlocale (); public string get_package_installation_directory_of_module (void* hmodule); @@ -4802,6 +4812,7 @@ namespace GLib { public bool have_widechar_api (); [CCode (cname = "G_WIN32_IS_NT_BASED")] public bool is_nt_based (); + [CCode (array_length = false, array_null_terminated = true)] public string[] get_command_line (); }