[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/3] add debug support to pico
From: |
Andrei Kholodnyi |
Subject: |
[PATCH 2/3] add debug support to pico |
Date: |
Sat, 6 Nov 2010 23:27:07 +0100 |
add Debug option to pico.conf and the corresponding handling in pico.c
---
config/modules/pico.conf | 1 +
src/modules/pico.c | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/config/modules/pico.conf b/config/modules/pico.conf
index b73e218..8906cf6 100644
--- a/config/modules/pico.conf
+++ b/config/modules/pico.conf
@@ -1,2 +1,3 @@
#PicoLingwarePath "/usr/share/pico/lang/"
+#Debug 1
diff --git a/src/modules/pico.c b/src/modules/pico.c
index 96df5de..0319414 100644
--- a/src/modules/pico.c
+++ b/src/modules/pico.c
@@ -43,6 +43,8 @@
#define MODULE_NAME "pico"
#define MODULE_VERSION "0.1"
+DECLARE_DEBUG();
+
#define MAX_OUTBUF_SIZE (128)
#define PICO_MEM_SIZE (10000000)
@@ -277,6 +279,7 @@ int module_load(void)
{
INIT_SETTINGS_TABLES();
+ MOD_OPTION_1_INT_REG(Debug, 0);
MOD_OPTION_1_STR_REG(PicoLingwarePath,PICO_LINGWARE_PATH);
module_audio_id = NULL;
--
1.6.0.4