44 #ifndef REGIFY_UTIL_FAM_H
45 #define REGIFY_UTIL_FAM_H
54 #define RU_FAM_CREATED 0x001
56 #define RU_FAM_DELETED 0x002
58 #define RU_FAM_MODIFIED 0x004
60 #define RU_FAM_MOVED 0x008
62 #define RU_FAM_ATTRIB 0x010
65 #define RU_FAM_KILL_TIMEOUT 5
67 #define RU_FAM_POLL_TIMEOUT 250
69 #define RU_FAM_QUEUE_TIMEOUT 50
145 #define ruFamEventLog(lvl, fe, prefix) ruMacStart { \
146 if(ruDoesLog(lvl)) { \
147 ruFamLogEventFunc(lvl, __FILE__, __func__, __LINE__, fe, prefix); \
RUAPI bool ruFamQuit(ruFamCtx o)
RUAPI char * ruFamEventString(ruFamEvent *fe)
void * ruFamCtx
Definition: fam.h:88
RUAPI ruFamEvent * ruFamEventNew(int eventType, trans_chars filePath, trans_chars destPath)
RUAPI ptr ruFamEventFree(ptr o)
RUAPI void ruFamLogEventFunc(uint32_t loglevel, trans_chars file, trans_chars func, int32_t line, ruFamEvent *fe, trans_chars prefix)
void(* ruFamHandler)(ruFamEvent *fe, perm_ptr ctx)
Definition: fam.h:83
RUAPI ruFamCtx ruFamKillMonitor(ruFamCtx o)
RUAPI const char * ruFamEventTypeString(int32_t action)
RUAPI ruFamCtx ruFamMonitorFilePath(trans_chars filePath, trans_chars threadName, ruFamHandler eventCallBack, perm_ptr ctx)
const void * perm_ptr
A permanent pointer.
Definition: regify-util.h:277
const char * trans_chars
A transient NULL terminated string pointer.
Definition: regify-util.h:186
const char * perm_chars
A permanent NULL terminated string pointer.
Definition: regify-util.h:176
void * ptr
A generic pointer.
Definition: regify-util.h:304
perm_chars dstPath
Definition: fam.h:75
int eventType
Definition: fam.h:73
perm_chars srcPath
Definition: fam.h:74