diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-12-07 16:12:35 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-01-03 21:05:58 +0100 |
commit | 2212d3e054fbe218c64fa76eeac8480f82d9f623 (patch) | |
tree | b654130c0e9bd7e74498d9a71a81ee3d141e7c13 /libmm-glib/mm-manager.h | |
parent | e3766aef5d93d6cfec27432c81da3548bdd18ea6 (diff) |
api,manager: new InhibitDevice() method
This new method allows users of the ModemManager API to take full
control of a given device.
Unlike other operations in the API, the inhibition is maintained as
long as the caller exists in the bus, or until the same caller
uninhibits the device.
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/98
Diffstat (limited to 'libmm-glib/mm-manager.h')
-rw-r--r-- | libmm-glib/mm-manager.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libmm-glib/mm-manager.h b/libmm-glib/mm-manager.h index f133c9f7..c215cfd9 100644 --- a/libmm-glib/mm-manager.h +++ b/libmm-glib/mm-manager.h @@ -128,6 +128,32 @@ gboolean mm_manager_report_kernel_event_sync (MMManager *manage GCancellable *cancellable, GError **error); +void mm_manager_inhibit_device (MMManager *manager, + const gchar *uid, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean mm_manager_inhibit_device_finish (MMManager *manager, + GAsyncResult *res, + GError **error); +gboolean mm_manager_inhibit_device_sync (MMManager *manager, + const gchar *uid, + GCancellable *cancellable, + GError **error); + +void mm_manager_uninhibit_device (MMManager *manager, + const gchar *uid, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean mm_manager_uninhibit_device_finish (MMManager *manager, + GAsyncResult *res, + GError **error); +gboolean mm_manager_uninhibit_device_sync (MMManager *manager, + const gchar *uid, + GCancellable *cancellable, + GError **error); + G_END_DECLS #endif /* _MM_MANAGER_H_ */ |