From 3ec111676ff9e34058b3bf2e482a236f341c10eb Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 15 Mar 2013 11:07:12 +0100 Subject: Add run-time changing of gsmd log level via libgsm/libgsmd-tool --- include/gsmd/usock.h | 1 + include/libgsmd/misc.h | 3 +++ 2 files changed, 4 insertions(+) (limited to 'include') 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 -- cgit v1.2.3