From 457c6293505e37da59a8af0338dd8688ba8acf13 Mon Sep 17 00:00:00 2001 From: laforge Date: Mon, 23 Oct 2006 21:55:39 +0000 Subject: 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 --- include/gsmd/usock.h | 9 +++++++++ include/libgsmd/misc.h | 4 ++++ 2 files changed, 13 insertions(+) (limited to 'include') 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 +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, -- cgit v1.2.3