diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-12-19 20:40:54 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:35 +0100 |
commit | 534aeb0c8ac83126048353b8f30128cd6f1cd92a (patch) | |
tree | 5a0c768b38ef761421765598428c353519cfb810 /cli/mmcli-common.h | |
parent | cd6caf61061e18736ecf0ddd4834c1ad1fbcb7c2 (diff) |
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.
Diffstat (limited to 'cli/mmcli-common.h')
-rw-r--r-- | cli/mmcli-common.h | 14 |
1 files changed, 10 insertions, 4 deletions
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); |