Commit 0d5e0435 authored by Jürg Billeter's avatar Jürg Billeter

gio-2.0: Update to 2.25.8

parent dd7aae1a
This diff is collapsed.
......@@ -10,12 +10,15 @@ namespace GLib {
public DesktopAppInfo.from_filename (string filename);
[CCode (has_construct_function = false)]
public DesktopAppInfo.from_keyfile (GLib.KeyFile key_file);
public unowned string get_filename ();
public bool get_is_hidden ();
public static void set_desktop_env (string desktop_env);
}
[CCode (cheader_filename = "gio/gunixconnection.h")]
public class UnixConnection : GLib.SocketConnection {
public unowned GLib.Credentials receive_credentials (GLib.Cancellable cancellable) throws GLib.Error;
public int receive_fd (GLib.Cancellable cancellable) throws GLib.Error;
public bool send_credentials (GLib.Cancellable cancellable) throws GLib.Error;
public bool send_fd (int fd, GLib.Cancellable cancellable) throws GLib.Error;
}
[CCode (cheader_filename = "gio/gunixfdmessage.h")]
......@@ -23,7 +26,11 @@ namespace GLib {
[CCode (type = "GSocketControlMessage*", has_construct_function = false)]
public UnixFDMessage ();
public bool append_fd (int fd) throws GLib.Error;
public unowned GLib.UnixFDList get_fd_list ();
public int steal_fds (int length);
[CCode (type = "GSocketControlMessage*", has_construct_function = false)]
public UnixFDMessage.with_fd_list (GLib.UnixFDList fd_list);
public GLib.UnixFDList fd_list { get; construct; }
}
[CCode (cheader_filename = "gio/gunixinputstream.h")]
public class UnixInputStream : GLib.InputStream {
......@@ -106,11 +113,15 @@ namespace GLib {
public static bool abstract_names_supported ();
[CCode (cname = "g_unix_socket_address_new_abstract", type = "GSocketAddress*", has_construct_function = false)]
public UnixSocketAddress.as_abstract (string path, int path_len);
public GLib.UnixSocketAddressType get_address_type ();
public bool get_is_abstract ();
public unowned string get_path ();
public size_t get_path_len ();
[CCode (type = "GSocketAddress*", has_construct_function = false)]
public UnixSocketAddress.with_type (string path, int path_len, GLib.UnixSocketAddressType type);
[NoAccessorMethod]
public bool @abstract { get; construct; }
public GLib.UnixSocketAddressType address_type { get; construct; }
public string path { get; construct; }
[NoAccessorMethod]
public GLib.ByteArray path_as_array { owned get; construct; }
......@@ -120,6 +131,10 @@ namespace GLib {
public abstract unowned GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
}
[CCode (cheader_filename = "gio/gunixmounts.h")]
public interface FileDescriptorBased : GLib.Object {
public abstract int get_fd ();
}
[CCode (cheader_filename = "gio/gunixmounts.h")]
public const string DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME;
[CCode (cname = "g_unix_is_mount_path_system_internal", cheader_filename = "gio/gunixmounts.h")]
public static bool is_mount_path_system_internal (string mount_path);
......
This diff is collapsed.
......@@ -139,6 +139,14 @@ g_io_scheduler_*.notify nullable="1"
g_memory_input_stream_*.destroy nullable="1"
g_memory_output_stream_*.destroy_function nullable="1"
g_application_is_remote hidden="1"
GApplication::quit has_emitter="1"
GDBusAuthObserver::authorize_authenticated_peer has_emitter="1"
GDBusConnection:closed hidden="1"
GFileDescriptorBased hidden="1"
g_file_mount_mountable.callback nullable="1"
g_file_unmount_mountable.callback nullable="1"
g_file_eject_mountable.callback nullable="1"
......@@ -187,3 +195,5 @@ g_volume_monitor_get_volume_for_uuid transfer_ownership="1"
g_volume_monitor_get_volumes type_arguments="Volume" transfer_ownership="1"
g_zlib_compressor_new.level default_value="-1"
uid_t name="uint"
......@@ -182,6 +182,12 @@
<implements>
<interface name="GAppInfo"/>
</implements>
<method name="get_filename" symbol="g_desktop_app_info_get_filename">
<return-type type="char*"/>
<parameters>
<parameter name="info" type="GDesktopAppInfo*"/>
</parameters>
</method>
<method name="get_is_hidden" symbol="g_desktop_app_info_get_is_hidden">
<return-type type="gboolean"/>
<parameters>
......@@ -214,6 +220,14 @@
</method>
</object>
<object name="GUnixConnection" parent="GSocketConnection" type-name="GUnixConnection" get-type="g_unix_connection_get_type">
<method name="receive_credentials" symbol="g_unix_connection_receive_credentials">
<return-type type="GCredentials*"/>
<parameters>
<parameter name="connection" type="GUnixConnection*"/>
<parameter name="cancellable" type="GCancellable*"/>
<parameter name="error" type="GError**"/>
</parameters>
</method>
<method name="receive_fd" symbol="g_unix_connection_receive_fd">
<return-type type="gint"/>
<parameters>
......@@ -222,6 +236,14 @@
<parameter name="error" type="GError**"/>
</parameters>
</method>
<method name="send_credentials" symbol="g_unix_connection_send_credentials">
<return-type type="gboolean"/>
<parameters>
<parameter name="connection" type="GUnixConnection*"/>
<parameter name="cancellable" type="GCancellable*"/>
<parameter name="error" type="GError**"/>
</parameters>
</method>
<method name="send_fd" symbol="g_unix_connection_send_fd">
<return-type type="gboolean"/>
<parameters>
......@@ -232,6 +254,75 @@
</parameters>
</method>
</object>
<object name="GUnixCredentialsMessage" parent="GSocketControlMessage" type-name="GUnixCredentialsMessage" get-type="g_unix_credentials_message_get_type">
<method name="get_credentials" symbol="g_unix_credentials_message_get_credentials">
<return-type type="GCredentials*"/>
<parameters>
<parameter name="message" type="GUnixCredentialsMessage*"/>
</parameters>
</method>
<method name="is_supported" symbol="g_unix_credentials_message_is_supported">
<return-type type="gboolean"/>
</method>
<constructor name="new" symbol="g_unix_credentials_message_new">
<return-type type="GSocketControlMessage*"/>
</constructor>
<constructor name="new_with_credentials" symbol="g_unix_credentials_message_new_with_credentials">
<return-type type="GSocketControlMessage*"/>
<parameters>
<parameter name="credentials" type="GCredentials*"/>
</parameters>
</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"/>
......@@ -241,9 +332,21 @@
<parameter name="error" type="GError**"/>
</parameters>
</method>
<method name="get_fd_list" symbol="g_unix_fd_message_get_fd_list">
<return-type type="GUnixFDList*"/>
<parameters>
<parameter name="message" type="GUnixFDMessage*"/>
</parameters>
</method>
<constructor name="new" symbol="g_unix_fd_message_new">
<return-type type="GSocketControlMessage*"/>
</constructor>
<constructor name="new_with_fd_list" symbol="g_unix_fd_message_new_with_fd_list">
<return-type type="GSocketControlMessage*"/>
<parameters>
<parameter name="fd_list" type="GUnixFDList*"/>
</parameters>
</constructor>
<method name="steal_fds" symbol="g_unix_fd_message_steal_fds">
<return-type type="gint*"/>
<parameters>
......@@ -251,6 +354,7 @@
<parameter name="length" type="gint*"/>
</parameters>
</method>
<property name="fd-list" type="GUnixFDList*" readable="1" writable="1" construct="0" construct-only="1"/>
</object>
<object name="GUnixInputStream" parent="GInputStream" type-name="GUnixInputStream" get-type="g_unix_input_stream_get_type">
<method name="get_close_fd" symbol="g_unix_input_stream_get_close_fd">
......@@ -343,6 +447,12 @@
<method name="abstract_names_supported" symbol="g_unix_socket_address_abstract_names_supported">
<return-type type="gboolean"/>
</method>
<method name="get_address_type" symbol="g_unix_socket_address_get_address_type">
<return-type type="GUnixSocketAddressType"/>
<parameters>
<parameter name="address" type="GUnixSocketAddress*"/>
</parameters>
</method>
<method name="get_is_abstract" symbol="g_unix_socket_address_get_is_abstract">
<return-type type="gboolean"/>
<parameters>
......@@ -371,10 +481,19 @@
<return-type type="GSocketAddress*"/>
<parameters>
<parameter name="path" type="gchar*"/>
<parameter name="path_len" type="int"/>
<parameter name="path_len" type="gint"/>
</parameters>
</constructor>
<constructor name="new_with_type" symbol="g_unix_socket_address_new_with_type">
<return-type type="GSocketAddress*"/>
<parameters>
<parameter name="path" type="gchar*"/>
<parameter name="path_len" type="gint"/>
<parameter name="type" type="GUnixSocketAddressType"/>
</parameters>
</constructor>
<property name="abstract" type="gboolean" readable="1" writable="1" construct="0" construct-only="1"/>
<property name="address-type" type="GUnixSocketAddressType" readable="1" writable="1" construct="0" construct-only="1"/>
<property name="path" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
<property name="path-as-array" type="GByteArray*" readable="1" writable="1" construct="0" construct-only="1"/>
</object>
......@@ -397,6 +516,23 @@
</parameters>
</vfunc>
</interface>
<interface name="GFileDescriptorBased" type-name="GFileDescriptorBased" get-type="g_file_descriptor_based_get_type">
<requires>
<interface name="GObject"/>
</requires>
<method name="get_fd" symbol="g_file_descriptor_based_get_fd">
<return-type type="int"/>
<parameters>
<parameter name="fd_based" type="GFileDescriptorBased*"/>
</parameters>
</method>
<vfunc name="get_fd">
<return-type type="int"/>
<parameters>
<parameter name="fd_based" type="GFileDescriptorBased*"/>
</parameters>
</vfunc>
</interface>
<constant name="G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME" type="char*" value="gio-desktop-app-info-lookup"/>
</namespace>
</api>
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