diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-07-10 17:18:25 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-07-10 17:20:41 +0200 |
commit | b126e84b56dfe52b91e882ef25ecdeb7341324b3 (patch) | |
tree | 8feb02ee2b380c6fe129699ff2a2ca8019da896c /plugins/cinterion/mm-shared-cinterion.h | |
parent | 3dd3d6faf6df1666d59b24c5329ed1da40d01112 (diff) |
cinterion: implement custom shared reset operation
Implemented for all QMI, MBIM and AT based modems. The parent reset
operation always takes priority if available.
Diffstat (limited to 'plugins/cinterion/mm-shared-cinterion.h')
-rw-r--r-- | plugins/cinterion/mm-shared-cinterion.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/cinterion/mm-shared-cinterion.h b/plugins/cinterion/mm-shared-cinterion.h index 6500dd49..eb6beac8 100644 --- a/plugins/cinterion/mm-shared-cinterion.h +++ b/plugins/cinterion/mm-shared-cinterion.h @@ -40,6 +40,9 @@ typedef struct _MMSharedCinterion MMSharedCinterion; struct _MMSharedCinterion { GTypeInterface g_iface; + /* Peek modem interface of the parent class of the object */ + MMIfaceModem * (* peek_parent_interface) (MMSharedCinterion *self); + /* Peek location interface of the parent class of the object */ MMIfaceModemLocation * (* peek_parent_location_interface) (MMSharedCinterion *self); @@ -53,6 +56,16 @@ struct _MMSharedCinterion { GType mm_shared_cinterion_get_type (void); /*****************************************************************************/ +/* Modem interface */ + +void mm_shared_cinterion_modem_reset (MMIfaceModem *self, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean mm_shared_cinterion_modem_reset_finish (MMIfaceModem *self, + GAsyncResult *res, + GError **error); + +/*****************************************************************************/ /* Location interface */ void mm_shared_cinterion_location_load_capabilities (MMIfaceModemLocation *self, |