diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2014-02-18 10:35:58 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-02-20 11:15:03 +0100 |
commit | 9239fbcd7a137f2bb349592d649fc80847e6e731 (patch) | |
tree | 3cae28c4c7027b7190c39b7a0d64c0850797f2ed /src/mm-iface-modem.h | |
parent | 705dd0133d8a02c0bf2a2cfa3d8920030dc1392d (diff) |
iface-modem: allow transitioning to the OFF power state
There are systems in which the modem power source can be controlled externally,
e.g. to switch it on or off. In these cases, it is sometimes advisable to be
able to tell the modem to cleanly shut off completely before the power is cut.
So, allow transitioning to the OFF power state if the modem supports it, even if
afterwards the modem could be completely unreachable.
Diffstat (limited to 'src/mm-iface-modem.h')
-rw-r--r-- | src/mm-iface-modem.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mm-iface-modem.h b/src/mm-iface-modem.h index 9b6db73d..265b965b 100644 --- a/src/mm-iface-modem.h +++ b/src/mm-iface-modem.h @@ -304,6 +304,13 @@ struct _MMIfaceModem { GAsyncResult *res, GError **error); + /* Asynchronous modem power-off operation */ + void (*modem_power_off) (MMIfaceModem *self, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*modem_power_off_finish) (MMIfaceModem *self, + GAsyncResult *res, + GError **error); /* Create SIM */ void (*create_sim) (MMIfaceModem *self, GAsyncReadyCallback callback, |