[vala] vapi: Add gio-windows-2.0



commit c22bf9b8dbbaa99f590961592017c7c1e5701f07
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Dec 21 16:06:40 2015 +0100

    vapi: Add gio-windows-2.0
    
    Includes some more g_win32 bindings and fixes.
    
    Fixes bug 650052

 vapi/Makefile.am          |    2 ++
 vapi/gio-windows-2.0.deps |    1 +
 vapi/gio-windows-2.0.vapi |   23 +++++++++++++++++++++++
 vapi/glib-2.0.vapi        |   11 +++++++++++
 4 files changed, 37 insertions(+), 0 deletions(-)
---
diff --git a/vapi/Makefile.am b/vapi/Makefile.am
index cd66ae5..1bbffba 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 0000000..cd10dfd
--- /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 0000000..4f6b7b3
--- /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 af183d6..e880fef 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 ();
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]