mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-25 03:17:52 +02:00
gdbus-codegen: Add support for new org.gtk.GDBus.C.UnixFD annotation
Also add convenience _with_unix_fd_list variants to GDBusConnection, GDBusProxy and GDBusMethodInvocation types to easily support this. Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
@@ -332,6 +332,18 @@ gdbus-codegen --c-namespace MyApp \
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><literal>org.gtk.GDBus.C.UnixFD</literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
If set to a non-empty string, the generated code will
|
||||
include parameters to exchange file descriptors using the
|
||||
#GUnixFDList type. This annotation can be used on
|
||||
<literal><method></literal> elements.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
|
||||
<para>
|
||||
@@ -744,8 +756,7 @@ on_handle_hello_world (MyAppFrobber *interface,
|
||||
<link linkend="G-VARIANT-TYPE-INT32:CAPS">'i'</link>,
|
||||
<link linkend="G-VARIANT-TYPE-UINT32:CAPS">'u'</link>,
|
||||
<link linkend="G-VARIANT-TYPE-INT64:CAPS">'x'</link>,
|
||||
<link linkend="G-VARIANT-TYPE-UINT64:CAPS">'t'</link>,
|
||||
<link linkend="G-VARIANT-TYPE-HANDLE:CAPS">'h'</link> and
|
||||
<link linkend="G-VARIANT-TYPE-UINT64:CAPS">'t'</link> and
|
||||
<link linkend="G-VARIANT-TYPE-DOUBLE:CAPS">'d'</link>)
|
||||
),
|
||||
strings (type-strings
|
||||
@@ -780,11 +791,7 @@ on_handle_hello_world (MyAppFrobber *interface,
|
||||
The generated C functions are guaranteed to not change their ABI
|
||||
that is, if a method, signal or property does not change its
|
||||
signature in the introspection XML, the generated C functions will
|
||||
not change its C ABI either. One exception to this guarantee is if
|
||||
you are using type <link
|
||||
linkend="G-VARIANT-TYPE-HANDLE:CAPS">'h'</link> for passing file
|
||||
descriptors on Unix. Future versions of gdbus-codegen will include
|
||||
guarantees for this type as well.
|
||||
not change its C ABI either.
|
||||
</para>
|
||||
<para>
|
||||
The ABI of the generated #GType<!-- -->s will be preserved only if
|
||||
|
@@ -2468,6 +2468,9 @@ GDBusCallFlags
|
||||
g_dbus_connection_call
|
||||
g_dbus_connection_call_finish
|
||||
g_dbus_connection_call_sync
|
||||
g_dbus_connection_call_with_unix_fd_list
|
||||
g_dbus_connection_call_with_unix_fd_list_finish
|
||||
g_dbus_connection_call_with_unix_fd_list_sync
|
||||
g_dbus_connection_emit_signal
|
||||
GDBusSignalFlags
|
||||
GDBusSignalCallback
|
||||
@@ -2522,6 +2525,7 @@ g_dbus_method_invocation_return_error_literal
|
||||
g_dbus_method_invocation_return_gerror
|
||||
g_dbus_method_invocation_return_dbus_error
|
||||
g_dbus_method_invocation_take_error
|
||||
g_dbus_method_invocation_return_value_with_unix_fd_list
|
||||
<SUBSECTION Standard>
|
||||
G_DBUS_METHOD_INVOCATION
|
||||
G_IS_DBUS_METHOD_INVOCATION
|
||||
@@ -2602,6 +2606,9 @@ g_dbus_proxy_get_interface_info
|
||||
g_dbus_proxy_call
|
||||
g_dbus_proxy_call_finish
|
||||
g_dbus_proxy_call_sync
|
||||
g_dbus_proxy_call_with_unix_fd_list
|
||||
g_dbus_proxy_call_with_unix_fd_list_finish
|
||||
g_dbus_proxy_call_with_unix_fd_list_sync
|
||||
<SUBSECTION Standard>
|
||||
G_DBUS_PROXY
|
||||
G_IS_DBUS_PROXY
|
||||
|
Reference in New Issue
Block a user