Commit eb88eb9b authored by Rico Tzschichholz's avatar Rico Tzschichholz Committed by Rico Tzschichholz

gio-unix-2.0: Update to 2.37.5

parent a2c419ef
......@@ -10,13 +10,21 @@ namespace GLib {
public DesktopAppInfo.from_filename (string filename);
[CCode (has_construct_function = false)]
public DesktopAppInfo.from_keyfile (GLib.KeyFile key_file);
public string get_action_name (string action_name);
public bool get_boolean (string key);
public unowned string get_categories ();
public unowned string get_filename ();
public unowned string get_generic_name ();
public bool get_is_hidden ();
public unowned string[] get_keywords ();
public bool get_nodisplay ();
public bool get_show_in (string desktop_env);
public unowned string get_startup_wm_class ();
public unowned string get_string (string key);
public bool has_key (string key);
public void launch_action (string action_name, GLib.AppLaunchContext launch_context);
public bool launch_uris_as_manager (GLib.List uris, GLib.AppLaunchContext launch_context, GLib.SpawnFlags spawn_flags, GLib.SpawnChildSetupFunc user_setup, void* user_setup_data, GLib.DesktopAppLaunchCallback pid_callback, void* pid_callback_data) throws GLib.Error;
public unowned string[] list_actions ();
public static void set_desktop_env (string desktop_env);
public string filename { get; construct; }
}
......@@ -24,11 +32,23 @@ namespace GLib {
public class UnixConnection : GLib.SocketConnection {
[CCode (has_construct_function = false)]
protected UnixConnection ();
public unowned GLib.Credentials receive_credentials (GLib.Cancellable? cancellable = null) throws GLib.Error;
public GLib.Credentials receive_credentials (GLib.Cancellable? cancellable = null) throws GLib.Error;
public async GLib.Credentials receive_credentials_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
public int receive_fd (GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool send_credentials (GLib.Cancellable? cancellable = null) throws GLib.Error;
public async bool send_credentials_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool send_fd (int fd, GLib.Cancellable? cancellable = null) throws GLib.Error;
}
[CCode (cheader_filename = "gio/gunixcredentialsmessage.h")]
public class UnixCredentialsMessage : GLib.SocketControlMessage {
[CCode (has_construct_function = false, type = "GSocketControlMessage*")]
public UnixCredentialsMessage ();
public unowned GLib.Credentials get_credentials ();
public static bool is_supported ();
[CCode (has_construct_function = false, type = "GSocketControlMessage*")]
public UnixCredentialsMessage.with_credentials (GLib.Credentials credentials);
public GLib.Credentials credentials { get; construct; }
}
[CCode (cheader_filename = "gio/gunixfdmessage.h")]
public class UnixFDMessage : GLib.SocketControlMessage {
[CCode (has_construct_function = false, type = "GSocketControlMessage*")]
......@@ -41,11 +61,10 @@ namespace GLib {
public GLib.UnixFDList fd_list { get; construct; }
}
[CCode (cheader_filename = "gio/gunixinputstream.h")]
public class UnixInputStream : GLib.InputStream, GLib.PollableInputStream {
public class UnixInputStream : GLib.InputStream, GLib.PollableInputStream, GLib.FileDescriptorBased {
[CCode (has_construct_function = false, type = "GInputStream*")]
public UnixInputStream (int fd, bool close_fd);
public bool get_close_fd ();
public int get_fd ();
public void set_close_fd (bool close_fd);
public bool close_fd { get; set; }
public int fd { get; construct; }
......@@ -68,11 +87,13 @@ namespace GLib {
[CCode (cname = "g_unix_mount_guess_can_eject")]
public bool guess_can_eject ();
[CCode (cname = "g_unix_mount_guess_icon")]
public unowned GLib.Icon guess_icon ();
public GLib.Icon guess_icon ();
[CCode (cname = "g_unix_mount_guess_name")]
public unowned string guess_name ();
public string guess_name ();
[CCode (cname = "g_unix_mount_guess_should_display")]
public bool guess_should_display ();
[CCode (cname = "g_unix_mount_guess_symbolic_icon")]
public GLib.Icon guess_symbolic_icon ();
[CCode (cname = "g_unix_mount_is_readonly")]
public bool is_readonly ();
[CCode (cname = "g_unix_mount_is_system_internal")]
......@@ -97,19 +118,20 @@ namespace GLib {
public unowned string get_device_path ();
public unowned string get_fs_type ();
public unowned string get_mount_path ();
public unowned string get_options ();
public bool guess_can_eject ();
public unowned GLib.Icon guess_icon ();
public unowned string guess_name ();
public GLib.Icon guess_icon ();
public string guess_name ();
public GLib.Icon guess_symbolic_icon ();
public bool is_loopback ();
public bool is_readonly ();
public bool is_user_mountable ();
}
[CCode (cheader_filename = "gio/gunixoutputstream.h")]
public class UnixOutputStream : GLib.OutputStream, GLib.PollableOutputStream {
public class UnixOutputStream : GLib.OutputStream, GLib.PollableOutputStream, GLib.FileDescriptorBased {
[CCode (has_construct_function = false, type = "GOutputStream*")]
public UnixOutputStream (int fd, bool close_fd);
public bool get_close_fd ();
public int get_fd ();
public void set_close_fd (bool close_fd);
public bool close_fd { get; set; }
public int fd { get; construct; }
......
......@@ -37,11 +37,13 @@ namespace GLib {
[CCode (cname = "g_unix_mount_guess_can_eject")]
public bool guess_can_eject ();
[CCode (cname = "g_unix_mount_guess_icon")]
public unowned GLib.Icon guess_icon ();
public GLib.Icon guess_icon ();
[CCode (cname = "g_unix_mount_guess_name")]
public unowned string guess_name ();
public string guess_name ();
[CCode (cname = "g_unix_mount_guess_should_display")]
public bool guess_should_display ();
[CCode (cname = "g_unix_mount_guess_symbolic_icon")]
public GLib.Icon guess_symbolic_icon ();
[CCode (cname = "g_unix_mount_is_readonly")]
public bool is_readonly ();
[CCode (cname = "g_unix_mount_is_system_internal")]
......
......@@ -69,6 +69,12 @@
<parameter name="mount_entry" type="GUnixMountEntry*"/>
</parameters>
</function>
<function name="g_unix_mount_guess_symbolic_icon" symbol="g_unix_mount_guess_symbolic_icon">
<return-type type="GIcon*"/>
<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>
......@@ -149,6 +155,12 @@
<parameter name="mount_point" type="GUnixMountPoint*"/>
</parameters>
</method>
<method name="get_options" symbol="g_unix_mount_point_get_options">
<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>
......@@ -167,6 +179,12 @@
<parameter name="mount_point" type="GUnixMountPoint*"/>
</parameters>
</method>
<method name="guess_symbolic_icon" symbol="g_unix_mount_point_guess_symbolic_icon">
<return-type type="GIcon*"/>
<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>
......@@ -190,6 +208,20 @@
<implements>
<interface name="GAppInfo"/>
</implements>
<method name="get_action_name" symbol="g_desktop_app_info_get_action_name">
<return-type type="gchar*"/>
<parameters>
<parameter name="info" type="GDesktopAppInfo*"/>
<parameter name="action_name" type="gchar*"/>
</parameters>
</method>
<method name="get_boolean" symbol="g_desktop_app_info_get_boolean">
<return-type type="gboolean"/>
<parameters>
<parameter name="info" type="GDesktopAppInfo*"/>
<parameter name="key" type="char*"/>
</parameters>
</method>
<method name="get_categories" symbol="g_desktop_app_info_get_categories">
<return-type type="char*"/>
<parameters>
......@@ -214,6 +246,12 @@
<parameter name="info" type="GDesktopAppInfo*"/>
</parameters>
</method>
<method name="get_keywords" symbol="g_desktop_app_info_get_keywords">
<return-type type="char**"/>
<parameters>
<parameter name="info" type="GDesktopAppInfo*"/>
</parameters>
</method>
<method name="get_nodisplay" symbol="g_desktop_app_info_get_nodisplay">
<return-type type="gboolean"/>
<parameters>
......@@ -227,6 +265,34 @@
<parameter name="desktop_env" type="gchar*"/>
</parameters>
</method>
<method name="get_startup_wm_class" symbol="g_desktop_app_info_get_startup_wm_class">
<return-type type="char*"/>
<parameters>
<parameter name="info" type="GDesktopAppInfo*"/>
</parameters>
</method>
<method name="get_string" symbol="g_desktop_app_info_get_string">
<return-type type="char*"/>
<parameters>
<parameter name="info" type="GDesktopAppInfo*"/>
<parameter name="key" type="char*"/>
</parameters>
</method>
<method name="has_key" symbol="g_desktop_app_info_has_key">
<return-type type="gboolean"/>
<parameters>
<parameter name="info" type="GDesktopAppInfo*"/>
<parameter name="key" type="char*"/>
</parameters>
</method>
<method name="launch_action" symbol="g_desktop_app_info_launch_action">
<return-type type="void"/>
<parameters>
<parameter name="info" type="GDesktopAppInfo*"/>
<parameter name="action_name" type="gchar*"/>
<parameter name="launch_context" type="GAppLaunchContext*"/>
</parameters>
</method>
<method name="launch_uris_as_manager" symbol="g_desktop_app_info_launch_uris_as_manager">
<return-type type="gboolean"/>
<parameters>
......@@ -241,6 +307,12 @@
<parameter name="error" type="GError**"/>
</parameters>
</method>
<method name="list_actions" symbol="g_desktop_app_info_list_actions">
<return-type type="gchar**"/>
<parameters>
<parameter name="info" type="GDesktopAppInfo*"/>
</parameters>
</method>
<constructor name="new" symbol="g_desktop_app_info_new">
<return-type type="GDesktopAppInfo*"/>
<parameters>
......@@ -276,6 +348,23 @@
<parameter name="error" type="GError**"/>
</parameters>
</method>
<method name="receive_credentials_async" symbol="g_unix_connection_receive_credentials_async">
<return-type type="void"/>
<parameters>
<parameter name="connection" type="GUnixConnection*"/>
<parameter name="cancellable" type="GCancellable*"/>
<parameter name="callback" type="GAsyncReadyCallback"/>
<parameter name="user_data" type="gpointer"/>
</parameters>
</method>
<method name="receive_credentials_finish" symbol="g_unix_connection_receive_credentials_finish">
<return-type type="GCredentials*"/>
<parameters>
<parameter name="connection" type="GUnixConnection*"/>
<parameter name="result" type="GAsyncResult*"/>
<parameter name="error" type="GError**"/>
</parameters>
</method>
<method name="receive_fd" symbol="g_unix_connection_receive_fd">
<return-type type="gint"/>
<parameters>
......@@ -292,6 +381,23 @@
<parameter name="error" type="GError**"/>
</parameters>
</method>
<method name="send_credentials_async" symbol="g_unix_connection_send_credentials_async">
<return-type type="void"/>
<parameters>
<parameter name="connection" type="GUnixConnection*"/>
<parameter name="cancellable" type="GCancellable*"/>
<parameter name="callback" type="GAsyncReadyCallback"/>
<parameter name="user_data" type="gpointer"/>
</parameters>
</method>
<method name="send_credentials_finish" symbol="g_unix_connection_send_credentials_finish">
<return-type type="gboolean"/>
<parameters>
<parameter name="connection" type="GUnixConnection*"/>
<parameter name="result" type="GAsyncResult*"/>
<parameter name="error" type="GError**"/>
</parameters>
</method>
<method name="send_fd" symbol="g_unix_connection_send_fd">
<return-type type="gboolean"/>
<parameters>
......@@ -323,54 +429,6 @@
</constructor>
<property name="credentials" type="GCredentials*" readable="1" writable="1" construct="0" construct-only="1"/>
</object>
<object name="GUnixFDList" parent="GObject" type-name="GUnixFDList" get-type="g_unix_fd_list_get_type">
<method name="append" symbol="g_unix_fd_list_append">
<return-type type="gint"/>
<parameters>
<parameter name="list" type="GUnixFDList*"/>
<parameter name="fd" type="gint"/>
<parameter name="error" type="GError**"/>
</parameters>
</method>
<method name="get" symbol="g_unix_fd_list_get">
<return-type type="gint"/>
<parameters>
<parameter name="list" type="GUnixFDList*"/>
<parameter name="index_" type="gint"/>
<parameter name="error" type="GError**"/>
</parameters>
</method>
<method name="get_length" symbol="g_unix_fd_list_get_length">
<return-type type="gint"/>
<parameters>
<parameter name="list" type="GUnixFDList*"/>
</parameters>
</method>
<constructor name="new" symbol="g_unix_fd_list_new">
<return-type type="GUnixFDList*"/>
</constructor>
<constructor name="new_from_array" symbol="g_unix_fd_list_new_from_array">
<return-type type="GUnixFDList*"/>
<parameters>
<parameter name="fds" type="gint*"/>
<parameter name="n_fds" type="gint"/>
</parameters>
</constructor>
<method name="peek_fds" symbol="g_unix_fd_list_peek_fds">
<return-type type="gint*"/>
<parameters>
<parameter name="list" type="GUnixFDList*"/>
<parameter name="length" type="gint*"/>
</parameters>
</method>
<method name="steal_fds" symbol="g_unix_fd_list_steal_fds">
<return-type type="gint*"/>
<parameters>
<parameter name="list" type="GUnixFDList*"/>
<parameter name="length" type="gint*"/>
</parameters>
</method>
</object>
<object name="GUnixFDMessage" parent="GSocketControlMessage" type-name="GUnixFDMessage" get-type="g_unix_fd_message_get_type">
<method name="append_fd" symbol="g_unix_fd_message_append_fd">
<return-type type="gboolean"/>
......@@ -407,6 +465,7 @@
<object name="GUnixInputStream" parent="GInputStream" type-name="GUnixInputStream" get-type="g_unix_input_stream_get_type">
<implements>
<interface name="GPollableInputStream"/>
<interface name="GFileDescriptorBased"/>
</implements>
<method name="get_close_fd" symbol="g_unix_input_stream_get_close_fd">
<return-type type="gboolean"/>
......@@ -464,6 +523,7 @@
<object name="GUnixOutputStream" parent="GOutputStream" type-name="GUnixOutputStream" get-type="g_unix_output_stream_get_type">
<implements>
<interface name="GPollableOutputStream"/>
<interface name="GFileDescriptorBased"/>
</implements>
<method name="get_close_fd" symbol="g_unix_output_stream_get_close_fd">
<return-type type="gboolean"/>
......
GLib cprefix="G" lower_case_cprefix="g_" cheader_filename="gio/gunixmounts.h"
GDesktopAppInfo cheader_filename="gio/gdesktopappinfo.h"
g_desktop_app_info_get_action_name transfer_ownership="1"
g_desktop_app_info_get_keywords type_name="string[]"
g_desktop_app_info_list_actions type_name="string[]"
GFileDescriptorBased cheader_filename="gio/gfiledescriptorbased.h"
GUnixConnection cheader_filename="gio/gunixconnection.h"
g_unix_connection_receive_credentials transfer_ownership="1"
g_unix_connection_receive_credentials_finish transfer_ownership="1"
GUnixCredentialsMessage cheader_filename="gio/gunixcredentialsmessage.h"
GUnixFDMessage cheader_filename="gio/gunixfdmessage.h"
GUnixInputStream cheader_filename="gio/gunixinputstream.h"
g_unix_is_mount_path_system_internal name="is_mount_path_system_internal"
......@@ -19,8 +25,12 @@ g_unix_mount_guess_can_eject hidden="1"
g_unix_mount_guess_icon hidden="1"
g_unix_mount_guess_name hidden="1"
g_unix_mount_guess_should_display hidden="1"
g_unix_mount_guess_symbolic_icon hidden="1"
g_unix_mount_is_readonly hidden="1"
g_unix_mount_is_system_internal hidden="1"
g_unix_mount_point_guess_icon transfer_ownership="1"
g_unix_mount_point_guess_name transfer_ownership="1"
g_unix_mount_point_guess_symbolic_icon transfer_ownership="1"
g_unix_mount_points_changed_since name="mount_points_changed_since"
g_unix_mount_points_get hidden="1"
GUnixOutputStream cheader_filename="gio/gunixoutputstream.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment