30 #include "dsclientlogger.h"
31 #define MAX_LOG_BUFF 500
33 DSClient_LogCb logCb = NULL;
35 void DSClient_RegisterForLog(DSClient_LogCb cb)
40 int ds_client_log(
int priority,
const char *format, ...)
42 char tmp_buff[MAX_LOG_BUFF];
44 va_start(args, format);
45 vsnprintf(tmp_buff,MAX_LOG_BUFF-1,format, args);
49 logCb(priority,tmp_buff);
53 return printf(tmp_buff);