--- mqtt/inc/rtlm.h 2011/11/23 01:07:17 1.1.2.2 +++ mqtt/inc/rtlm.h 2011/11/24 13:57:11 1.1.2.6 @@ -10,8 +10,22 @@ void mqttUnloadRTLM(int); inline int mqttMkDir(sl_config *); -sqlite3 *(*mqttOpenDB)(sl_config *cfg, int modtype); -void (*mqttCloseDB)(sqlite3 *sql); +struct tagCallbacks { + /* mqtt_acc.so */ + void *(*OpenACC)(sl_config *); + void (*CloseACC)(void *); + int (*LoginACC)(sl_config *, void *, const char*, const char*, ...); + + /* mqtt_pub.so */ + void *(*OpenPUB)(sl_config *); + void (*ClosePUB)(void *); + int (*InitSessPUB)(sl_config *, void *, const char*, const char*, u_short); + + /* mqtt_log.so */ + void *(*OpenLOG)(sl_config *); + void (*CloseLOG)(void *); + int (*LOG)(void *, const char *, ...); +}; #endif