优化demo代码和api接口
Change-Id: I8748413432a38b9339d23799c97f2b0d8b4c545b
diff --git a/mbtk/test/liblynq_lib_t106/lynq-qser-voice-demo.cpp b/mbtk/test/liblynq_lib_t106/lynq-qser-voice-demo.cpp
index d6ddaf1..9c55c7e 100755
--- a/mbtk/test/liblynq_lib_t106/lynq-qser-voice-demo.cpp
+++ b/mbtk/test/liblynq_lib_t106/lynq-qser-voice-demo.cpp
@@ -8,6 +8,7 @@
#include <stdint.h>
#include"lynq-qser-voice-demo.h"
+#include "mbtk_log.h"
typedef struct
{
@@ -82,6 +83,8 @@
int ret = 0;
int voice_call_id = 0;
voice_client_handle_type h_voice = 0;
+
+ mbtk_log_init("radio", "MBTK");
const char *lynqLibPath_Call = "/lib/liblynq-qser-voice.so";
dlHandle_call = dlopen(lynqLibPath_Call, RTLD_NOW);
@@ -91,7 +94,7 @@
exit(EXIT_FAILURE);
}
- qser_voice_call_client_init = (int(*)(voice_client_handle_type *ph_voice))dlsym(dlHandle_call, "qser_voice_call_client_init");
+ qser_voice_call_client_init = (int(*)(voice_client_handle_type *h_voice))dlsym(dlHandle_call, "qser_voice_call_client_init");
if(qser_voice_call_client_init == NULL)
{
printf("qser_voice_call_client_init not defined or exported in %s\n", lynqLibPath_Call);