]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Add gio-windows-2.0
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 21 Dec 2015 15:06:40 +0000 (16:06 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 21 Dec 2015 17:34:42 +0000 (18:34 +0100)
Includes some more g_win32 bindings and fixes.

Fixes bug 650052

vapi/Makefile.am
vapi/gio-windows-2.0.deps [new file with mode: 0644]
vapi/gio-windows-2.0.vapi [new file with mode: 0644]
vapi/glib-2.0.vapi

index cd66ae5fd65f27928bab93c08a71ff12b8a589b8..1bbffba64c9140170aeb4d26f77774b2b0aab6ed 100644 (file)
@@ -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 (file)
index 0000000..cd10dfd
--- /dev/null
@@ -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 (file)
index 0000000..4f6b7b3
--- /dev/null
@@ -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; }
+       }
+}
index af183d6857bd50ab0f44de8c161259306968554b..e880fef73ab26641493739585a659839e8f0135b 100644 (file)
@@ -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 ();
        }