summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/gsmd/usock.h9
-rw-r--r--include/libgsmd/misc.h4
2 files changed, 13 insertions, 0 deletions
diff --git a/include/gsmd/usock.h b/include/gsmd/usock.h
index f5d26ae..2eaa6cf 100644
--- a/include/gsmd/usock.h
+++ b/include/gsmd/usock.h
@@ -46,6 +46,15 @@ enum gsmd_msg_pin_type {
GSMD_PIN_INPUT = 1,
};
+enum gsmd_msg_phone {
+ GSMD_PHONE_POWERUP = 1,
+ GSMD_PHONE_POWERDOWN = 2,
+};
+
+enum gsmd_msg_network {
+ GSMD_NETWORK_REGISTER = 1,
+};
+
/* Length from 3GPP TS 04.08, Clause 10.5.4.7 */
#define GSMD_ADDR_MAXLEN 32
diff --git a/include/libgsmd/misc.h b/include/libgsmd/misc.h
index e191ce6..95e219d 100644
--- a/include/libgsmd/misc.h
+++ b/include/libgsmd/misc.h
@@ -8,6 +8,8 @@
#include <libgsmd/libgsmd.h>
+extern int lgsm_phone_power(struct lgsm_handle *lh, int power);
+
enum lgsm_netreg_state {
LGSM_NETREG_ST_NOTREG = 0,
LGSM_NETREG_ST_REG_HOME = 1,
@@ -21,6 +23,8 @@ enum lgsm_netreg_state {
extern int lgsm_get_netreg_state(struct lgsm_handle *lh,
enum lgsm_netreg_state *state);
+extern int lgsm_netreg_register(struct lgsm_handle *lh, int oper);
+
enum lgsm_info_type {
LGSM_INFO_TYPE_NONE = 0,
LGSM_INFO_TYPE_MANUF = 1,
personal git repositories of Harald Welte. Your mileage may vary