diff options
author | tony_guan <tony_guan@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2007-02-28 07:04:28 +0000 |
---|---|---|
committer | tony_guan <tony_guan@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2007-02-28 07:04:28 +0000 |
commit | ad71bbb9d55312434d62be75498092436edf1f1d (patch) | |
tree | 3c0524845468353a81f09ef4366d2b844a4c0c2f /include | |
parent | 78fd16891ec47e2ac7a68b801e1d80cff05afcac (diff) |
resolved bug 108, please varify it. thks.
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1156 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'include')
-rw-r--r-- | include/libgsmd/misc.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/libgsmd/misc.h b/include/libgsmd/misc.h index 95e219d..c919d72 100644 --- a/include/libgsmd/misc.h +++ b/include/libgsmd/misc.h @@ -1,5 +1,5 @@ -#ifndef _LIBGSMD_H -#define _LIBGSMD_H +#ifndef _MISC_LIBGSMD_H +#define _MISC_LIBGSMD_H /* libgsmd.h - Library API for gsmd, the GSM Daemon * (C) 2006 by Harald Welte <hwelte@hmw-consulting.de> @@ -25,19 +25,19 @@ extern int lgsm_get_netreg_state(struct lgsm_handle *lh, extern int lgsm_netreg_register(struct lgsm_handle *lh, int oper); -enum lgsm_info_type { +typedef enum _lgsm_info_type { LGSM_INFO_TYPE_NONE = 0, LGSM_INFO_TYPE_MANUF = 1, LGSM_INFO_TYPE_MODEL = 2, LGSM_INFO_TYPE_REVISION = 3, LGSM_INFO_TYPE_SERIAL = 4, LGSM_INFO_TYPE_IMSI = 5, -}; +}lgsm_info_type; /* Get some information about the handset */ extern int lgsm_get_info(struct lgsm_handle *lh, - enum lgsm_info_type type, - char *ret_string, u_int16_t len); + lgsm_info_type type, + char *ret_string, unsigned int* len); /* Authenticate to SIM Card using specified null-terminated pin */ extern int lgsm_pin_auth(struct lgsm_handle *lh, const char *pin); |