Annotation of mqtt/inc/dbmqtt.h, revision 1.1.2.2
1.1.2.1 misho 1: #ifndef __DBMQTT_H
2: #define __DBMQTT_H
3:
4:
1.1.2.2 ! misho 5: /*
! 6: * mqtt_db_open() Open database connection
! 7: *
! 8: * @csCfgName = config filename
! 9: * @modtype = RTL module type, 0== mqtt_acc or !=0 mqtt_pub
! 10: * return: NULL error or SQL handle
! 11: */
! 12: sqlite3 *mqtt_db_open(sl_config *cfg, int modtype);
! 13: /*
! 14: * mqtt_db_close() Close database connection
! 15: *
! 16: * @sql = SQL handle
! 17: * return: none
! 18: */
! 19: void mqtt_db_close(sqlite3 *sql);
! 20: /*
! 21: * mqtt_db_log() Log database connection message
! 22: *
! 23: * @fmt = format string
! 24: * @... = argument list
! 25: * return: none
! 26: */
! 27: void mqtt_db_log(const char *fmt, ...);
! 28: #define MQTT_DB_LOG(_sql) (assert((_sql)), mqtt_db_log("Error:: SQL #%d - %s", \
! 29: sqlite3_errcode((_sql)), sqlite3_errmsg((_sql))))
! 30:
! 31:
1.1.2.1 misho 32: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>