32 #define MAX_LOG_BUFF 500
34 DS_LogCb logCb = NULL;
36 void DS_RegisterForLog(DS_LogCb cb)
41 int ds_log(
int priority,
const char *format, ...)
43 char tmp_buff[MAX_LOG_BUFF];
45 va_start(args, format);
46 vsnprintf(tmp_buff,MAX_LOG_BUFF-1,format, args);
50 logCb(priority,tmp_buff);
54 return printf(tmp_buff);