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.
This commit is contained in:
+10
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user