diff options
Diffstat (limited to 'include/gsmd')
-rw-r--r-- | include/gsmd/machineplugin.h | 1 | ||||
-rw-r--r-- | include/gsmd/usock.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/gsmd/machineplugin.h b/include/gsmd/machineplugin.h index 7a66031..c3ed801 100644 --- a/include/gsmd/machineplugin.h +++ b/include/gsmd/machineplugin.h @@ -11,6 +11,7 @@ struct gsmd; struct gsmd_machine_plugin { struct llist_head list; unsigned char *name; + int (*power)(struct gsmd *g, int power); int (*ex_submit)(struct gsmd *g); int (*detect)(struct gsmd *g); int (*init)(struct gsmd *g, int fd); diff --git a/include/gsmd/usock.h b/include/gsmd/usock.h index 3580a83..7340807 100644 --- a/include/gsmd/usock.h +++ b/include/gsmd/usock.h @@ -24,6 +24,7 @@ enum gsmd_msg_type { GSMD_MSG_PIN = 8, GSMD_MSG_SMS = 9, GSMD_MSG_CB = 10, + GSMD_MSG_MODEM = 11, __NUM_GSMD_MSGS }; @@ -57,6 +58,11 @@ enum gsmd_msg_phone { GSMD_PHONE_POWERDOWN = 2, }; +enum gsmd_msg_modem { + GSMD_MODEM_POWERUP = 1, + GSMD_MODEM_POWERDOWN = 2, +}; + enum gsmd_msg_cb { GSMD_CB_SUBSCRIBE = 1, GSMD_CB_UNSUBSCRIBE = 2, |