summaryrefslogtreecommitdiff
path: root/gio/gdbusprivate.h
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2010-06-30 11:43:42 -0400
committerDavid Zeuthen <davidz@redhat.com>2010-06-30 11:51:40 -0400
commit038d03cd08bdb42e6f83f6041ec01732476e900b (patch)
tree4bf237db64b39f8aa1684e70635d2076cb155cb1 /gio/gdbusprivate.h
parent137ae2413c9d25edd3f886fd25b6353c8170f7ba (diff)
downloadglib-038d03cd08bdb42e6f83f6041ec01732476e900b.tar.gz
Bug 623142 – Ensure ::new-connection runs before processing D-Bus messages
Without this guarantee, peer-to-peer connections are not very useful. However, with this guarantee it's possible to export objects in a handler for the GDBusServer::new-connection signal. There are two caveats with this patch - it won't work on message bus connections - we don't queue up messages to be written that can be addresses later if needed. https://bugzilla.gnome.org/show_bug.cgi?id=623142 Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'gio/gdbusprivate.h')
-rw-r--r--gio/gdbusprivate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gio/gdbusprivate.h b/gio/gdbusprivate.h
index 0d9cb610e..766bb98a7 100644
--- a/gio/gdbusprivate.h
+++ b/gio/gdbusprivate.h
@@ -53,6 +53,7 @@ typedef void (*GDBusWorkerDisconnectedCallback) (GDBusWorker *worker,
*/
GDBusWorker *_g_dbus_worker_new (GIOStream *stream,
GDBusCapabilityFlags capabilities,
+ gboolean initially_frozen,
GDBusWorkerMessageReceivedCallback message_received_callback,
GDBusWorkerMessageAboutToBeSentCallback message_about_to_be_sent_callback,
GDBusWorkerDisconnectedCallback disconnected_callback,
@@ -67,6 +68,9 @@ void _g_dbus_worker_send_message (GDBusWorker *worker,
/* can be called from any thread */
void _g_dbus_worker_stop (GDBusWorker *worker);
+/* can be called from any thread */
+void _g_dbus_worker_unfreeze (GDBusWorker *worker);
+
/* ---------------------------------------------------------------------------------------------------- */
void _g_dbus_initialize (void);