Add gio-windows vapi

This commit is contained in:
Ignacio Casal Quinteiro 2015-12-21 13:02:15 +01:00
parent c2b23230f4
commit b3608762e4
2 changed files with 23 additions and 1 deletions

View file

@ -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 $@ $<

21
vapi/gio-windows-2.0.vapi Normal file
View file

@ -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; }
}
}