version 1.2.2.2, 2012/02/01 15:44:40
|
version 1.2.2.3, 2012/04/11 15:08:27
|
Line 25 mqttLog(const char *fmt, ...)
|
Line 25 mqttLog(const char *fmt, ...)
|
} |
} |
|
|
void * |
void * |
mqttLoadRTLM(sl_config *cfg, int modtype) | mqttLoadRTLM(cfg_root_t *cfg, int modtype) |
{ |
{ |
const char *str, *attr; |
const char *str, *attr; |
void *rtlm = NULL; |
void *rtlm = NULL; |
void *(*mqttOpenRTLM)(sl_config *); | void *(*mqttOpenRTLM)(cfg_root_t *); |
void (*mqttCloseRTLM)(void *); |
void (*mqttCloseRTLM)(void *); |
|
|
if (!cfg) |
if (!cfg) |
Line 47 mqttLoadRTLM(sl_config *cfg, int modtype)
|
Line 47 mqttLoadRTLM(sl_config *cfg, int modtype)
|
break; |
break; |
} |
} |
|
|
str = (const char*) CFG(cfg_GetAttribute(cfg, CFG("mqttd"), CFG(attr))); | str = cfg_getAttribute(cfg, "mqttd", attr); |
if (!str) { |
if (!str) { |
mqttLog("Error:: RTL module not found\n"); |
mqttLog("Error:: RTL module not found\n"); |
return NULL; |
return NULL; |
Line 139 mqttUnloadRTLM(int modtype)
|
Line 139 mqttUnloadRTLM(int modtype)
|
} |
} |
|
|
inline int |
inline int |
mqttMkDir(sl_config *cfg) | mqttMkDir(cfg_root_t *cfg) |
{ |
{ |
const char *str; |
const char *str; |
|
|
if (!cfg) |
if (!cfg) |
return -1; |
return -1; |
|
|
str = (const char*) cfg_GetAttribute(cfg, CFG("mqttd"), CFG("statedir")); | str = (const char*) cfg_getAttribute(cfg, "mqttd", "statedir"); |
if (!str) |
if (!str) |
return -1; |
return -1; |
|
|