summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-03-15 11:07:12 +0100
committerHarald Welte <laforge@gnumonks.org>2013-03-15 11:07:12 +0100
commit3ec111676ff9e34058b3bf2e482a236f341c10eb (patch)
tree4a12ba3ccfd8ed8d15d0624ed0a41034043df9a4 /include
parent4c14b6eb4183905dea8f0a2cea695cebb174815f (diff)
Add run-time changing of gsmd log level via libgsm/libgsmd-tool
Diffstat (limited to 'include')
-rw-r--r--include/gsmd/usock.h1
-rw-r--r--include/libgsmd/misc.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/gsmd/usock.h b/include/gsmd/usock.h
index ba50cbd..4ffe09d 100644
--- a/include/gsmd/usock.h
+++ b/include/gsmd/usock.h
@@ -142,6 +142,7 @@ enum gsmd_msg_phone {
GSMD_PHONE_VIB_ENABLE = 9,
GSMD_PHONE_VIB_DISABLE = 10,
GSMD_PHONE_POWER_STATUS = 11,
+ GSMD_PHONE_GSMD_LOGLEVEL= 12,
};
enum gsmd_msg_modem {
diff --git a/include/libgsmd/misc.h b/include/libgsmd/misc.h
index 54e2940..ae266d7 100644
--- a/include/libgsmd/misc.h
+++ b/include/libgsmd/misc.h
@@ -80,4 +80,7 @@ extern int lgsm_phone_vibrator(struct lgsm_handle *lh, int enable);
/* Get Antenna Power status */
extern int lgsm_get_power_status(struct lgsm_handle *lh);
+/* Set the gsmd loglevel at runtime */
+extern int lgsm_set_gsmd_loglevel(struct lgsm_handle *lh, u_int8_t loglevel);
+
#endif
personal git repositories of Harald Welte. Your mileage may vary