mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
GDBus: Add GDBusSignalFlags and use it in g_dbus_connection_signal_subscribe()
This is currently unused but will probably be useful in the future. For example, we could have a _ARG0_IS_PATH to specify that arg0 should be used for arg0path. This commit breaks API and ABI. Users of g_dbus_connection_signal_subscribe() will need to port to this new version. Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
@@ -2901,6 +2901,7 @@ is_signal_data_for_name_lost_or_acquired (SignalData *signal_data)
|
||||
* @member: D-Bus signal name to match on or %NULL to match on all signals.
|
||||
* @object_path: Object path to match on or %NULL to match on all object paths.
|
||||
* @arg0: Contents of first string argument to match on or %NULL to match on all kinds of arguments.
|
||||
* @flags: Flags describing how to subscribe to the signal (currently unused).
|
||||
* @callback: Callback to invoke when there is a signal matching the requested data.
|
||||
* @user_data: User data to pass to @callback.
|
||||
* @user_data_free_func: Function to free @user_data with when subscription is removed or %NULL.
|
||||
@@ -2932,6 +2933,7 @@ g_dbus_connection_signal_subscribe (GDBusConnection *connection,
|
||||
const gchar *member,
|
||||
const gchar *object_path,
|
||||
const gchar *arg0,
|
||||
GDBusSignalFlags flags,
|
||||
GDBusSignalCallback callback,
|
||||
gpointer user_data,
|
||||
GDestroyNotify user_data_free_func)
|
||||
|
Reference in New Issue
Block a user