[glib: 1/2] GUnixFDList: Include only in unix build
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] GUnixFDList: Include only in unix build
- Date: Tue, 5 Apr 2022 12:12:19 +0000 (UTC)
commit c9874f817be51d3b652457daef3b10766b59db9a
Author: badcel <33569-badcel users noreply gitlab gnome org>
Date: Mon Apr 4 20:30:22 2022 +0200
GUnixFDList: Include only in unix build
gio/gdbusconnection.h | 5 +++++
gio/gdbusmessage.h | 5 +++++
gio/gdbusmethodinvocation.h | 2 ++
gio/gdbusproxy.h | 4 ++++
4 files changed, 16 insertions(+)
---
diff --git a/gio/gdbusconnection.h b/gio/gdbusconnection.h
index 4bd3e9a4b7..5404d0f746 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 5f039dc910..437a799486 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 775070a2c0..c0e6218a57 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 6be9871ec1..38f47c5409 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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]