diff --git a/Makefile.am b/Makefile.am index 2cde59c7..bf1e2667 100644 --- a/Makefile.am +++ b/Makefile.am @@ -115,7 +115,8 @@ EXTRA_DIST += \ vapi/libpeas-1.0.vapi \ vapi/libsoup-2.4.deps \ vapi/libsoup-2.4.vapi \ - vapi/gitg-platform-support.vapi + vapi/gitg-platform-support.vapi \ + vapi/gio-windows-2.0.vapi %.typelib: %.gir $(INTROSPECTION_COMPILER) $(INTROSPECTION_COMPILER_ARGS) --includedir=$(top_srcdir) -o $@ $< diff --git a/vapi/gio-windows-2.0.vapi b/vapi/gio-windows-2.0.vapi new file mode 100644 index 00000000..39c9da28 --- /dev/null +++ b/vapi/gio-windows-2.0.vapi @@ -0,0 +1,21 @@ +[CCode (cprefix = "G", lower_case_cprefix = "g_")] +namespace GLib { + [CCode (cheader_filename = "gio/gwin32inputstream.h")] + public class Win32InputStream : GLib.InputStream { + [CCode (has_construct_function = false, type = "GInputStream*")] + public Win32InputStream (int handle, bool close_fd); + public bool get_close_handle (); + public void set_close_handle (bool close_fd); + public bool close_handle { get; set; } + public int handle { get; construct; } + } + [CCode (cheader_filename = "gio/gwin32outputstream.h")] + public class Win32OutputStream : GLib.OutputStream { + [CCode (has_construct_function = false, type = "GOutputStream*")] + public Win32OutputStream (int handle, bool close_fd); + public bool get_close_handle (); + public void set_close_handle (bool close_fd); + public bool close_handle { get; set; } + public int handle { get; construct; } + } +}