From 534aeb0c8ac83126048353b8f30128cd6f1cd92a Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 19 Dec 2011 20:40:54 +0100 Subject: cli: always keep a MMManager around In order to receive signals in the GDBusObjects retrieved from the GDBusObjectManagerClient, we need to keep a reference of the client around. --- cli/mmcli-common.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'cli/mmcli-common.h') diff --git a/cli/mmcli-common.h b/cli/mmcli-common.h index 8ab1587f..a18b5076 100644 --- a/cli/mmcli-common.h +++ b/cli/mmcli-common.h @@ -32,18 +32,24 @@ void mmcli_get_modem (GDBusConnection *connection, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); -MMObject *mmcli_get_modem_finish (GAsyncResult *res); +MMObject *mmcli_get_modem_finish (GAsyncResult *res, + MMManager **o_manager); MMObject *mmcli_get_modem_sync (GDBusConnection *connection, - const gchar *modem_str); + const gchar *modem_str, + MMManager **o_manager); void mmcli_get_bearer (GDBusConnection *connection, const gchar *bearer_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); -MMBearer *mmcli_get_bearer_finish (GAsyncResult *res); +MMBearer *mmcli_get_bearer_finish (GAsyncResult *res, + MMManager **manager, + MMObject **object); MMBearer *mmcli_get_bearer_sync (GDBusConnection *connection, - const gchar *bearer_path); + const gchar *bearer_path, + MMManager **manager, + MMObject **object); const gchar *mmcli_get_bearer_ip_method_string (MMBearerIpMethod method); const gchar *mmcli_get_state_string (MMModemState state); -- cgit v1.2.3-70-g09d2