diff --git a/gio/gdbusconnection.h b/gio/gdbusconnection.h index 4bd3e9a4b..5404d0f74 100644 --- a/gio/gdbusconnection.h +++ b/gio/gdbusconnection.h @@ -218,6 +218,9 @@ GVariant *g_dbus_connection_call_sync (GDBusConnection gint timeout_msec, GCancellable *cancellable, GError **error); + +#ifdef G_OS_UNIX + GLIB_AVAILABLE_IN_2_30 void g_dbus_connection_call_with_unix_fd_list (GDBusConnection *connection, const gchar *bus_name, @@ -252,6 +255,8 @@ GVariant *g_dbus_connection_call_with_unix_fd_list_sync (GDBusConnection GCancellable *cancellable, GError **error); +#endif /* G_OS_UNIX */ + /* ---------------------------------------------------------------------------------------------------- */ diff --git a/gio/gdbusmessage.h b/gio/gdbusmessage.h index 5f039dc91..437a79948 100644 --- a/gio/gdbusmessage.h +++ b/gio/gdbusmessage.h @@ -107,12 +107,17 @@ GVariant *g_dbus_message_get_body (GDBusMessage GLIB_AVAILABLE_IN_ALL void g_dbus_message_set_body (GDBusMessage *message, GVariant *body); + +#ifdef G_OS_UNIX + GLIB_AVAILABLE_IN_ALL GUnixFDList *g_dbus_message_get_unix_fd_list (GDBusMessage *message); GLIB_AVAILABLE_IN_ALL void g_dbus_message_set_unix_fd_list (GDBusMessage *message, GUnixFDList *fd_list); +#endif /* G_OS_UNIX */ + GLIB_AVAILABLE_IN_ALL guint32 g_dbus_message_get_reply_serial (GDBusMessage *message); GLIB_AVAILABLE_IN_ALL diff --git a/gio/gdbusmethodinvocation.h b/gio/gdbusmethodinvocation.h index 775070a2c..c0e6218a5 100644 --- a/gio/gdbusmethodinvocation.h +++ b/gio/gdbusmethodinvocation.h @@ -94,10 +94,12 @@ gpointer g_dbus_method_invocation_get_user_data (GDBusMetho GLIB_AVAILABLE_IN_ALL void g_dbus_method_invocation_return_value (GDBusMethodInvocation *invocation, GVariant *parameters); +#ifdef G_OS_UNIX GLIB_AVAILABLE_IN_ALL void g_dbus_method_invocation_return_value_with_unix_fd_list (GDBusMethodInvocation *invocation, GVariant *parameters, GUnixFDList *fd_list); +#endif /* G_OS_UNIX */ GLIB_AVAILABLE_IN_ALL void g_dbus_method_invocation_return_error (GDBusMethodInvocation *invocation, GQuark domain, diff --git a/gio/gdbusproxy.h b/gio/gdbusproxy.h index 6be9871ec..38f47c540 100644 --- a/gio/gdbusproxy.h +++ b/gio/gdbusproxy.h @@ -183,6 +183,8 @@ GVariant *g_dbus_proxy_call_sync (GDBusProxy *pr GCancellable *cancellable, GError **error); +#ifdef G_OS_UNIX + GLIB_AVAILABLE_IN_ALL void g_dbus_proxy_call_with_unix_fd_list (GDBusProxy *proxy, const gchar *method_name, @@ -209,6 +211,8 @@ GVariant *g_dbus_proxy_call_with_unix_fd_list_sync (GDBusProxy GCancellable *cancellable, GError **error); +#endif /* G_OS_UNIX */ + G_END_DECLS #endif /* __G_DBUS_PROXY_H__ */