diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-03-15 11:07:12 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-03-15 11:07:12 +0100 |
commit | 3ec111676ff9e34058b3bf2e482a236f341c10eb (patch) | |
tree | 4a12ba3ccfd8ed8d15d0624ed0a41034043df9a4 /include | |
parent | 4c14b6eb4183905dea8f0a2cea695cebb174815f (diff) |
Add run-time changing of gsmd log level via libgsm/libgsmd-tool
Diffstat (limited to 'include')
-rw-r--r-- | include/gsmd/usock.h | 1 | ||||
-rw-r--r-- | include/libgsmd/misc.h | 3 |
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 |