#define AVOID_OVERLAP 0
#define ALLOW_OVERLAP 1
-extern int debug;
+extern int debug; /* debug status read from conf file */
/**********prototypes***************************************/
void err_sys(const char *fmt, ...);
void err_dump(const char *fmt, ...);
void err_msg(const char *fmt, ...);
+void err_msg_warn(const char *fmt, ...);
void err_quit(const char *fmt, ...);
void errToSyslog(int i);
int PutCloseToMngDb(char* macAddress);
int PutOpenToMngDb(char* macAddress);
int PutMacIpPairToMngDb(char* macAddress, char* ipAddress);
+int GetNextRecordFromWatchlistTableInMngDb(char* macAddress);
+int IsAllFoundInWatchlistTable(void);
/* workdb.c */
int SetupSqliteBusyTimeoutValue(void);
void FreeMacCache(void);
int QueryMacFromMacCache(char* macAddress, char* userId, char* extraId);
int DelMacCacheItem(char* macAddress);
-int AddMacCacheItem(char* macAddress, char* userId, char* extraId);
+int AddMacCacheItem(char* macAddress, char* userId, char* extraId, int found);
+/* watchlistcache.c */
+void InitWatchlistCache(void);
+int AddWatchlistCacheItem(char* macAddress);
+int IsFoundInWatchlistCache(char* macAddress);
+void FreeWatchlistCache(void);