diff options
Diffstat (limited to 'src/mm-iface-modem.h')
-rw-r--r-- | src/mm-iface-modem.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/mm-iface-modem.h b/src/mm-iface-modem.h index c649a49f..8d3366e4 100644 --- a/src/mm-iface-modem.h +++ b/src/mm-iface-modem.h @@ -465,6 +465,16 @@ gboolean mm_iface_modem_disable_finish (MMIfaceModem *self, GAsyncResult *res, GError **error); +/* Shutdown Modem interface */ +void mm_iface_modem_shutdown (MMIfaceModem *self); + +/* Helper to return an error when the modem is in failed state and so it + * cannot process a given method invocation + */ +gboolean mm_iface_modem_abort_invocation_if_state_not_reached (MMIfaceModem *self, + GDBusMethodInvocation *invocation, + MMModemState minimum_required); + /* Allow setting power state */ void mm_iface_modem_set_power_state (MMIfaceModem *self, MMModemPowerState power_state, @@ -474,9 +484,6 @@ gboolean mm_iface_modem_set_power_state_finish (MMIfaceModem *self, GAsyncResult *res, GError **error); -/* Shutdown Modem interface */ -void mm_iface_modem_shutdown (MMIfaceModem *self); - /* Request lock info update. * It will not only return the lock status, but also set the property values * in the DBus interface. If 'known_lock' is given, that lock status will be |