summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorlaforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-02-28 11:55:34 +0000
committerlaforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-02-28 11:55:34 +0000
commit7fda58922167e78d1db5af3da6fbdacbb7f3790f (patch)
tree81f9e3e32143919f2de869b60025a006363680dc /include
parent3fc8236ddedd794eea8abdb5aae6558ce6c1e2b4 (diff)
revert 'bug108' patch from tony guan.
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1161 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'include')
-rw-r--r--include/libgsmd/misc.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/libgsmd/misc.h b/include/libgsmd/misc.h
index c919d72..95e219d 100644
--- a/include/libgsmd/misc.h
+++ b/include/libgsmd/misc.h
@@ -1,5 +1,5 @@
-#ifndef _MISC_LIBGSMD_H
-#define _MISC_LIBGSMD_H
+#ifndef _LIBGSMD_H
+#define _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);
-typedef enum _lgsm_info_type {
+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,
- lgsm_info_type type,
- char *ret_string, unsigned int* len);
+ enum lgsm_info_type type,
+ char *ret_string, u_int16_t len);
/* Authenticate to SIM Card using specified null-terminated pin */
extern int lgsm_pin_auth(struct lgsm_handle *lh, const char *pin);
personal git repositories of Harald Welte. Your mileage may vary