From 1ddda12d646f67fcb558399dce20ecff2405bf20 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 6 May 2010 20:54:04 -0400 Subject: [PATCH] A quick cheat sheet --- docs/reference/gio/migrating-dbus-glib.xml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/docs/reference/gio/migrating-dbus-glib.xml b/docs/reference/gio/migrating-dbus-glib.xml index 2dda37e..a8863d1 100644 --- a/docs/reference/gio/migrating-dbus-glib.xml +++ b/docs/reference/gio/migrating-dbus-glib.xml @@ -1,7 +1,35 @@ Migrating from dbus-glib to GDBus + + dbus-glib functions and their GDBus counterparts + + + dbus-glibGDBus + + + dbus_g_bus_get()g_bus_get_sync(), also see + g_bus_get() + dbus_g_proxy_new_for_name()g_dbus_proxy_new_sync(), also see + g_dbus_proxy_new() + dbus_g_proxy_add_signal()not needed, use the generic #GDBusProxy::g-signal + dbus_g_proxy_connect_signal()use g_signal_connect() with #GDBusProxy::g-signal + dbus_g_connection_register_g_object()g_dbus_connection_register_object() + dbus_g_connection_unregister_g_object()g_dbus_connection_unregister_object() + dbus_g_object_type_install_info()introspection data is installed while registering + an object, see g_dbus_connection_register_object() + dbus_g_proxy_begin_call()g_dbus_proxy_invoke_method() + dbus_g_proxy_end_call()g_dbus_proxy_invoke_method_finish() + dbus_g_proxy_call()g_dbus_proxy_invoke_method_sync() + dbus_g_error_domain_register()g_dbus_error_register_error_domain() + dbus_g_error_has_name()no direct equivalent, see g_dbus_error_get_remote_error() + dbus_g_method_return()g_dbus_method_invocation_return_value() + dbus_g_method_return_error()g_dbus_method_invocation_return_error() and variants + dbus_g_method_get_sender()g_dbus_method_invocation_get_sender() + + +
- Hints for migrating from dbus-glib to GDBus will appear here shortly... + More hints for migrating from dbus-glib to GDBus will appear here shortly...
-- 2.7.4