version 1.2, 2012/01/27 15:05:38
|
version 1.2.2.1, 2012/04/11 15:08:27
|
Line 30 mqtt_rtlm_log(const char *fmt, ...)
|
Line 30 mqtt_rtlm_log(const char *fmt, ...)
|
* return: NULL error or SQL handle |
* return: NULL error or SQL handle |
*/ |
*/ |
FILE * |
FILE * |
mqtt_rtlm_open(sl_config *cfg) | mqtt_rtlm_open(cfg_root_t *cfg) |
{ |
{ |
FILE *f = NULL; |
FILE *f = NULL; |
const char *str = NULL; |
const char *str = NULL; |
Line 38 mqtt_rtlm_open(sl_config *cfg)
|
Line 38 mqtt_rtlm_open(sl_config *cfg)
|
if (!cfg) |
if (!cfg) |
return NULL; |
return NULL; |
|
|
str = (const char*) cfg_GetAttribute(cfg, CFG("mqtt_log"), CFG("name")); | str = cfg_getAttribute(cfg, "mqtt_log", "name"); |
if (!str) { |
if (!str) { |
mqtt_rtlm_log("Error:: Unknown file name ...\n"); |
mqtt_rtlm_log("Error:: Unknown file name ...\n"); |
return NULL; |
return NULL; |