OSDN Git Service

modified comments
[opengatem/opengatem.git] / mdsrc / opengatemd.h
index 4aa7499..9ab62e6 100644 (file)
@@ -95,7 +95,7 @@ typedef       void    Sigfunc(int);   /* for signal handlers */
 #define AVOID_OVERLAP 0
 #define ALLOW_OVERLAP 1
 
-extern int debug;
+extern int debug;  /* debug status read from conf file */
 
 /**********prototypes***************************************/
 
@@ -135,6 +135,7 @@ void err_ret(const char *fmt, ...);
 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);
 
@@ -175,6 +176,8 @@ void CloseMngDb(void);
 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);
@@ -230,5 +233,10 @@ void InitMacCache(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);