summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/gsmd/machineplugin.h1
-rw-r--r--include/gsmd/usock.h6
-rw-r--r--include/libgsmd/misc.h1
3 files changed, 8 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,
diff --git a/include/libgsmd/misc.h b/include/libgsmd/misc.h
index 206b2e1..165994e 100644
--- a/include/libgsmd/misc.h
+++ b/include/libgsmd/misc.h
@@ -9,6 +9,7 @@
#include <libgsmd/libgsmd.h>
extern int lgsm_phone_power(struct lgsm_handle *lh, int power);
+extern int lgsm_modem_power(struct lgsm_handle *lh, int power);
enum lgsm_info_type {
LGSM_INFO_TYPE_NONE = 0,
personal git repositories of Harald Welte. Your mileage may vary