summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorlaforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3>2006-10-23 21:55:39 +0000
committerlaforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3>2006-10-23 21:55:39 +0000
commit457c6293505e37da59a8af0338dd8688ba8acf13 (patch)
tree5cbbb7a33e505debab3f5601c173ac4536b7c238 /include
parentcbffc8d64707828b045b679e8db0269ae362ffcf (diff)
first working revision of gsmd, libgsmd and libgsmd-tool
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@115 99fdad57-331a-0410-800a-d7fa5415bdb3
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