summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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 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);
personal git repositories of Harald Welte. Your mileage may vary