vala r932 - in trunk: . vapi vapi/packages/gio-unix-2.0



Author: juergbi
Date: Wed Jan 30 17:24:33 2008
New Revision: 932
URL: http://svn.gnome.org/viewvc/vala?rev=932&view=rev

Log:
2008-01-30  Juerg Billeter  <j bitron ch>

	* 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


Added:
   trunk/vapi/gio-unix-2.0.deps
   trunk/vapi/gio-unix-2.0.vapi
   trunk/vapi/packages/gio-unix-2.0/
   trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.deps
   trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.files
   trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.gi
   trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.metadata
   trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.namespace
Modified:
   trunk/ChangeLog
   trunk/vapi/Makefile.am

Modified: trunk/vapi/Makefile.am
==============================================================================
--- trunk/vapi/Makefile.am	(original)
+++ trunk/vapi/Makefile.am	Wed Jan 30 17:24:33 2008
@@ -20,6 +20,8 @@
 	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 \

Added: trunk/vapi/gio-unix-2.0.deps
==============================================================================
--- (empty file)
+++ trunk/vapi/gio-unix-2.0.deps	Wed Jan 30 17:24:33 2008
@@ -0,0 +1 @@
+gio-2.0

Added: trunk/vapi/gio-unix-2.0.vapi
==============================================================================
--- (empty file)
+++ trunk/vapi/gio-unix-2.0.vapi	Wed Jan 30 17:24:33 2008
@@ -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);
+}

Added: trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.deps
==============================================================================
--- (empty file)
+++ trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.deps	Wed Jan 30 17:24:33 2008
@@ -0,0 +1 @@
+gio-2.0

Added: trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.files
==============================================================================
--- (empty file)
+++ trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.files	Wed Jan 30 17:24:33 2008
@@ -0,0 +1,2 @@
+include/gio-unix-2.0/gio
+lib/libgio-2.0.so

Added: trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.gi
==============================================================================
--- (empty file)
+++ trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.gi	Wed Jan 30 17:24:33 2008
@@ -0,0 +1,246 @@
+<?xml version="1.0"?>
+<api version="1.0">
+	<namespace name="GLib">
+		<function name="g_unix_is_mount_path_system_internal" symbol="g_unix_is_mount_path_system_internal">
+			<return-type type="gboolean"/>
+			<parameters>
+				<parameter name="mount_path" type="char*"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mount_at" symbol="g_unix_mount_at">
+			<return-type type="GUnixMountEntry*"/>
+			<parameters>
+				<parameter name="mount_path" type="char*"/>
+				<parameter name="time_read" type="guint64*"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mount_compare" symbol="g_unix_mount_compare">
+			<return-type type="gint"/>
+			<parameters>
+				<parameter name="mount1" type="GUnixMountEntry*"/>
+				<parameter name="mount2" type="GUnixMountEntry*"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mount_free" symbol="g_unix_mount_free">
+			<return-type type="void"/>
+			<parameters>
+				<parameter name="mount_entry" type="GUnixMountEntry*"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mount_get_device_path" symbol="g_unix_mount_get_device_path">
+			<return-type type="char*"/>
+			<parameters>
+				<parameter name="mount_entry" type="GUnixMountEntry*"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mount_get_fs_type" symbol="g_unix_mount_get_fs_type">
+			<return-type type="char*"/>
+			<parameters>
+				<parameter name="mount_entry" type="GUnixMountEntry*"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mount_get_mount_path" symbol="g_unix_mount_get_mount_path">
+			<return-type type="char*"/>
+			<parameters>
+				<parameter name="mount_entry" type="GUnixMountEntry*"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mount_guess_can_eject" symbol="g_unix_mount_guess_can_eject">
+			<return-type type="gboolean"/>
+			<parameters>
+				<parameter name="mount_entry" type="GUnixMountEntry*"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mount_guess_icon" symbol="g_unix_mount_guess_icon">
+			<return-type type="GIcon*"/>
+			<parameters>
+				<parameter name="mount_entry" type="GUnixMountEntry*"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mount_guess_name" symbol="g_unix_mount_guess_name">
+			<return-type type="char*"/>
+			<parameters>
+				<parameter name="mount_entry" type="GUnixMountEntry*"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mount_guess_should_display" symbol="g_unix_mount_guess_should_display">
+			<return-type type="gboolean"/>
+			<parameters>
+				<parameter name="mount_entry" type="GUnixMountEntry*"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mount_is_readonly" symbol="g_unix_mount_is_readonly">
+			<return-type type="gboolean"/>
+			<parameters>
+				<parameter name="mount_entry" type="GUnixMountEntry*"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mount_is_system_internal" symbol="g_unix_mount_is_system_internal">
+			<return-type type="gboolean"/>
+			<parameters>
+				<parameter name="mount_entry" type="GUnixMountEntry*"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mount_points_changed_since" symbol="g_unix_mount_points_changed_since">
+			<return-type type="gboolean"/>
+			<parameters>
+				<parameter name="time" type="guint64"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mount_points_get" symbol="g_unix_mount_points_get">
+			<return-type type="GList*"/>
+			<parameters>
+				<parameter name="time_read" type="guint64*"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mounts_changed_since" symbol="g_unix_mounts_changed_since">
+			<return-type type="gboolean"/>
+			<parameters>
+				<parameter name="time" type="guint64"/>
+			</parameters>
+		</function>
+		<function name="g_unix_mounts_get" symbol="g_unix_mounts_get">
+			<return-type type="GList*"/>
+			<parameters>
+				<parameter name="time_read" type="guint64*"/>
+			</parameters>
+		</function>
+		<struct name="GUnixMountEntry">
+		</struct>
+		<struct name="GUnixMountMonitorClass">
+		</struct>
+		<struct name="GUnixMountPoint">
+			<method name="compare" symbol="g_unix_mount_point_compare">
+				<return-type type="gint"/>
+				<parameters>
+					<parameter name="mount1" type="GUnixMountPoint*"/>
+					<parameter name="mount2" type="GUnixMountPoint*"/>
+				</parameters>
+			</method>
+			<method name="free" symbol="g_unix_mount_point_free">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="mount_point" type="GUnixMountPoint*"/>
+				</parameters>
+			</method>
+			<method name="get_device_path" symbol="g_unix_mount_point_get_device_path">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="mount_point" type="GUnixMountPoint*"/>
+				</parameters>
+			</method>
+			<method name="get_fs_type" symbol="g_unix_mount_point_get_fs_type">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="mount_point" type="GUnixMountPoint*"/>
+				</parameters>
+			</method>
+			<method name="get_mount_path" symbol="g_unix_mount_point_get_mount_path">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="mount_point" type="GUnixMountPoint*"/>
+				</parameters>
+			</method>
+			<method name="guess_can_eject" symbol="g_unix_mount_point_guess_can_eject">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="mount_point" type="GUnixMountPoint*"/>
+				</parameters>
+			</method>
+			<method name="guess_icon" symbol="g_unix_mount_point_guess_icon">
+				<return-type type="GIcon*"/>
+				<parameters>
+					<parameter name="mount_point" type="GUnixMountPoint*"/>
+				</parameters>
+			</method>
+			<method name="guess_name" symbol="g_unix_mount_point_guess_name">
+				<return-type type="char*"/>
+				<parameters>
+					<parameter name="mount_point" type="GUnixMountPoint*"/>
+				</parameters>
+			</method>
+			<method name="is_loopback" symbol="g_unix_mount_point_is_loopback">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="mount_point" type="GUnixMountPoint*"/>
+				</parameters>
+			</method>
+			<method name="is_readonly" symbol="g_unix_mount_point_is_readonly">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="mount_point" type="GUnixMountPoint*"/>
+				</parameters>
+			</method>
+			<method name="is_user_mountable" symbol="g_unix_mount_point_is_user_mountable">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="mount_point" type="GUnixMountPoint*"/>
+				</parameters>
+			</method>
+		</struct>
+		<object name="GDesktopAppInfo" parent="GObject" type-name="GDesktopAppInfo" get-type="g_desktop_app_info_get_type">
+			<implements>
+				<interface name="GAppInfo"/>
+			</implements>
+			<method name="get_is_hidden" symbol="g_desktop_app_info_get_is_hidden">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="info" type="GDesktopAppInfo*"/>
+				</parameters>
+			</method>
+			<constructor name="new" symbol="g_desktop_app_info_new">
+				<return-type type="GDesktopAppInfo*"/>
+				<parameters>
+					<parameter name="desktop_id" type="char*"/>
+				</parameters>
+			</constructor>
+			<constructor name="new_from_filename" symbol="g_desktop_app_info_new_from_filename">
+				<return-type type="GDesktopAppInfo*"/>
+				<parameters>
+					<parameter name="filename" type="char*"/>
+				</parameters>
+			</constructor>
+			<method name="set_desktop_env" symbol="g_desktop_app_info_set_desktop_env">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="desktop_env" type="char*"/>
+				</parameters>
+			</method>
+		</object>
+		<object name="GUnixInputStream" parent="GInputStream" type-name="GUnixInputStream" get-type="g_unix_input_stream_get_type">
+			<constructor name="new" symbol="g_unix_input_stream_new">
+				<return-type type="GInputStream*"/>
+				<parameters>
+					<parameter name="fd" type="int"/>
+					<parameter name="close_fd_at_close" type="gboolean"/>
+				</parameters>
+			</constructor>
+		</object>
+		<object name="GUnixMountMonitor" parent="GObject" type-name="GUnixMountMonitor" get-type="g_unix_mount_monitor_get_type">
+			<constructor name="new" symbol="g_unix_mount_monitor_new">
+				<return-type type="GUnixMountMonitor*"/>
+			</constructor>
+			<signal name="mountpoints-changed" when="LAST">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="object" type="GUnixMountMonitor*"/>
+				</parameters>
+			</signal>
+			<signal name="mounts-changed" when="LAST">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="object" type="GUnixMountMonitor*"/>
+				</parameters>
+			</signal>
+		</object>
+		<object name="GUnixOutputStream" parent="GOutputStream" type-name="GUnixOutputStream" get-type="g_unix_output_stream_get_type">
+			<constructor name="new" symbol="g_unix_output_stream_new">
+				<return-type type="GOutputStream*"/>
+				<parameters>
+					<parameter name="fd" type="int"/>
+					<parameter name="close_fd_at_close" type="gboolean"/>
+				</parameters>
+			</constructor>
+		</object>
+	</namespace>
+</api>

Added: trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.metadata
==============================================================================
--- (empty file)
+++ trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.metadata	Wed Jan 30 17:24:33 2008
@@ -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"
+

Added: trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.namespace
==============================================================================
--- (empty file)
+++ trunk/vapi/packages/gio-unix-2.0/gio-unix-2.0.namespace	Wed Jan 30 17:24:33 2008
@@ -0,0 +1 @@
+GLib



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