From: Juerg Billeter Date: Wed, 30 Jan 2008 17:24:33 +0000 (+0000) Subject: add gio-unix-2.0 bindings, based on patch by Mikael Hermansson, fixes bug X-Git-Tag: VALA_0_1_7~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dfbe9ab07ee5ffaa9fc4fcdacd9dddd39a005a4;p=thirdparty%2Fvala.git add gio-unix-2.0 bindings, based on patch by Mikael Hermansson, fixes bug 2008-01-30 Juerg Billeter * vapi/Makefile.am, vapi/gio-unix-2.0.deps, vapi/gio-unix-2.0.vapi, vapi/packages/gio-unix-2.0/: add gio-unix-2.0 bindings, based on patch by Mikael Hermansson, fixes bug 512926 svn path=/trunk/; revision=932 --- diff --git a/ChangeLog b/ChangeLog index 58f8d7e0e..6c2d88f60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-30 Jürg Billeter + + * vapi/Makefile.am, vapi/gio-unix-2.0.deps, vapi/gio-unix-2.0.vapi, + vapi/packages/gio-unix-2.0/: add gio-unix-2.0 bindings, + based on patch by Mikael Hermansson, fixes bug 512926 + 2008-01-30 Jürg Billeter * vapi/glib-2.0.vapi: enhance GOption bindings, diff --git a/vapi/Makefile.am b/vapi/Makefile.am index 90b97d4a7..beed433e4 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -20,6 +20,8 @@ dist_vapi_DATA = \ gdk-2.0.vapi \ gdk-pixbuf-2.0.vapi \ gio-2.0.vapi \ + gio-unix-2.0.deps \ + gio-unix-2.0.vapi \ gnome-desktop-2.0.deps \ gnome-desktop-2.0.vapi \ gnome-vfs-2.0.vapi \ diff --git a/vapi/gio-unix-2.0.deps b/vapi/gio-unix-2.0.deps new file mode 100644 index 000000000..cd10dfde4 --- /dev/null +++ b/vapi/gio-unix-2.0.deps @@ -0,0 +1 @@ +gio-2.0 diff --git a/vapi/gio-unix-2.0.vapi b/vapi/gio-unix-2.0.vapi new file mode 100644 index 000000000..14bf868e6 --- /dev/null +++ b/vapi/gio-unix-2.0.vapi @@ -0,0 +1,79 @@ +/* gio-unix-2.0.vapi generated by lt-vapigen, do not modify. */ + +[CCode (cprefix = "G", lower_case_cprefix = "g_")] +namespace GLib { + [CCode (cheader_filename = "gio/gunixmounts.h")] + public class UnixMountEntry { + } + [CCode (cheader_filename = "gio/gunixmounts.h")] + public class UnixMountMonitorClass { + } + [CCode (cheader_filename = "gio/gunixmounts.h")] + public class UnixMountPoint { + public int compare (GLib.UnixMountPoint mount2); + public weak string get_device_path (); + public weak string get_fs_type (); + public weak string get_mount_path (); + public bool guess_can_eject (); + public weak GLib.Icon guess_icon (); + public weak string guess_name (); + public bool is_loopback (); + public bool is_readonly (); + public bool is_user_mountable (); + } + [CCode (cheader_filename = "gio/gdesktopappinfo.h")] + public class DesktopAppInfo : GLib.Object, GLib.AppInfo { + public bool get_is_hidden (); + public DesktopAppInfo (string desktop_id); + public DesktopAppInfo.from_filename (string filename); + public static void set_desktop_env (string desktop_env); + } + [CCode (cheader_filename = "gio/gunixinputstream.h")] + public class UnixInputStream : GLib.InputStream { + public UnixInputStream (int fd, bool close_fd_at_close); + } + [CCode (cheader_filename = "gio/gunixmounts.h")] + public class UnixMountMonitor : GLib.Object { + public UnixMountMonitor (); + public signal void mountpoints_changed (); + public signal void mounts_changed (); + } + [CCode (cheader_filename = "gio/gunixoutputstream.h")] + public class UnixOutputStream : GLib.OutputStream { + public UnixOutputStream (int fd, bool close_fd_at_close); + } + [CCode (cname = "g_unix_is_mount_path_system_internal")] + public static bool g_unix_is_mount_path_system_internal (string mount_path); + [CCode (cname = "g_unix_mount_at")] + public static weak GLib.UnixMountEntry g_unix_mount_at (string mount_path, uint64 time_read); + [CCode (cname = "g_unix_mount_compare")] + public static int g_unix_mount_compare (GLib.UnixMountEntry mount1, GLib.UnixMountEntry mount2); + [CCode (cname = "g_unix_mount_free")] + public static void g_unix_mount_free (GLib.UnixMountEntry mount_entry); + [CCode (cname = "g_unix_mount_get_device_path")] + public static weak string g_unix_mount_get_device_path (GLib.UnixMountEntry mount_entry); + [CCode (cname = "g_unix_mount_get_fs_type")] + public static weak string g_unix_mount_get_fs_type (GLib.UnixMountEntry mount_entry); + [CCode (cname = "g_unix_mount_get_mount_path")] + public static weak string g_unix_mount_get_mount_path (GLib.UnixMountEntry mount_entry); + [CCode (cname = "g_unix_mount_guess_can_eject")] + public static bool g_unix_mount_guess_can_eject (GLib.UnixMountEntry mount_entry); + [CCode (cname = "g_unix_mount_guess_icon")] + public static weak GLib.Icon g_unix_mount_guess_icon (GLib.UnixMountEntry mount_entry); + [CCode (cname = "g_unix_mount_guess_name")] + public static weak string g_unix_mount_guess_name (GLib.UnixMountEntry mount_entry); + [CCode (cname = "g_unix_mount_guess_should_display")] + public static bool g_unix_mount_guess_should_display (GLib.UnixMountEntry mount_entry); + [CCode (cname = "g_unix_mount_is_readonly")] + public static bool g_unix_mount_is_readonly (GLib.UnixMountEntry mount_entry); + [CCode (cname = "g_unix_mount_is_system_internal")] + public static bool g_unix_mount_is_system_internal (GLib.UnixMountEntry mount_entry); + [CCode (cname = "g_unix_mount_points_changed_since")] + public static bool g_unix_mount_points_changed_since (uint64 time); + [CCode (cname = "g_unix_mount_points_get")] + public static weak GLib.List g_unix_mount_points_get (uint64 time_read); + [CCode (cname = "g_unix_mounts_changed_since")] + public static bool g_unix_mounts_changed_since (uint64 time); + [CCode (cname = "g_unix_mounts_get")] + public static weak GLib.List g_unix_mounts_get (uint64 time_read); +} diff --git a/vapi/packages/gio-unix-2.0/gio-unix-2.0.deps b/vapi/packages/gio-unix-2.0/gio-unix-2.0.deps new file mode 100644 index 000000000..cd10dfde4 --- /dev/null +++ b/vapi/packages/gio-unix-2.0/gio-unix-2.0.deps @@ -0,0 +1 @@ +gio-2.0 diff --git a/vapi/packages/gio-unix-2.0/gio-unix-2.0.files b/vapi/packages/gio-unix-2.0/gio-unix-2.0.files new file mode 100644 index 000000000..374e6661c --- /dev/null +++ b/vapi/packages/gio-unix-2.0/gio-unix-2.0.files @@ -0,0 +1,2 @@ +include/gio-unix-2.0/gio +lib/libgio-2.0.so diff --git a/vapi/packages/gio-unix-2.0/gio-unix-2.0.gi b/vapi/packages/gio-unix-2.0/gio-unix-2.0.gi new file mode 100644 index 000000000..b752127a4 --- /dev/null +++ b/vapi/packages/gio-unix-2.0/gio-unix-2.0.gi @@ -0,0 +1,246 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vapi/packages/gio-unix-2.0/gio-unix-2.0.metadata b/vapi/packages/gio-unix-2.0/gio-unix-2.0.metadata new file mode 100644 index 000000000..080d8a117 --- /dev/null +++ b/vapi/packages/gio-unix-2.0/gio-unix-2.0.metadata @@ -0,0 +1,5 @@ +GLib cprefix="G" lower_case_cprefix="g_" cheader_filename="gio/gunixmounts.h" +GDesktopAppInfo cheader_filename="gio/gdesktopappinfo.h" +GUnixInputStream cheader_filename="gio/gunixinputstream.h" +GUnixOutputStream cheader_filename="gio/gunixoutputstream.h" + diff --git a/vapi/packages/gio-unix-2.0/gio-unix-2.0.namespace b/vapi/packages/gio-unix-2.0/gio-unix-2.0.namespace new file mode 100644 index 000000000..d7425e556 --- /dev/null +++ b/vapi/packages/gio-unix-2.0/gio-unix-2.0.namespace @@ -0,0 +1 @@ +GLib