--- libaitio/inc/aitio.h 2011/02/10 19:45:07 1.5.2.4 +++ libaitio/inc/aitio.h 2011/02/10 21:54:23 1.5.2.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.5.2.4 2011/02/10 19:45:07 misho Exp $ +* $Id: aitio.h,v 1.5.2.5 2011/02/10 21:54:23 misho Exp $ * *************************************************************************/ #ifndef __AITIO_H @@ -227,6 +227,14 @@ int ioXMLGet(const char *csXML, struct tagReqXML *xml) * return: -1 error, 0 directory path exist, >0 created missing dirs */ int ioMkDir(const char *csDir, int mode); + +/* + * ioWatchDirLoop() Function for watching changes in directory and fire callback + * @csDir = Full directory path + * @callback = Callback if raise event! nOp -1 delete, 0 change/move, 1 create + * return: -1 error, !=-1 ok, number of total signaled events +*/ +int ioWatchDirLoop(const char *csDir, int (*callback)(const char *csName, int nOp)); /*