Commit c22bf9b8 authored by Rico Tzschichholz's avatar Rico Tzschichholz

vapi: Add gio-windows-2.0

Includes some more g_win32 bindings and fixes.

Fixes bug 650052
parent a55d11f4
......@@ -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 \
......
/* 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; }
}
}
......@@ -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 ();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment