[glib: 1/2] gdbusconnection: Clarify nullability of SignalInstance.sender
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] gdbusconnection: Clarify nullability of SignalInstance.sender
- Date: Fri, 3 Apr 2020 12:12:14 +0000 (UTC)
commit 5a74c2f445458c037aa71ac51de3ed6af325a1ab
Author: Philip Withnall <withnall endlessm com>
Date: Fri Apr 3 12:16:49 2020 +0100
gdbusconnection: Clarify nullability of SignalInstance.sender
Following on from !1425.
Signed-off-by: Philip Withnall <withnall endlessm com>
gio/gdbusconnection.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c
index 1a4dae3bd..54aaf43d9 100644
--- a/gio/gdbusconnection.c
+++ b/gio/gdbusconnection.c
@@ -3728,7 +3728,7 @@ typedef struct
SignalSubscriber *subscriber; /* (owned) */
GDBusMessage *message;
GDBusConnection *connection;
- const gchar *sender;
+ const gchar *sender; /* (nullable) for peer-to-peer connections */
const gchar *path;
const gchar *interface;
const gchar *member;
@@ -3833,7 +3833,9 @@ path_rule_matches (const gchar *path_a,
return memcmp (path_a, path_b, MIN (len_a, len_b)) == 0;
}
-/* called in GDBusWorker thread WITH lock held */
+/* called in GDBusWorker thread WITH lock held
+ *
+ * @sender is (nullable) for peer-to-peer connections */
static void
schedule_callbacks (GDBusConnection *connection,
GPtrArray *signal_data_array,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]