40 #define EFSW_API __declspec(dllexport)
43 #define EFSW_API __declspec(dllimport)
52 #if ( __GNUC__ >= 4 ) && defined( EFSW_EXPORTS )
53 #define EFSW_API __attribute__ ((visibility("default")))
93 const char* old_filename,
void EFSW_API efsw_allow_outofscopelinks(efsw_watcher watcher, int allow)
Definition: FileWatcherCWrapper.cpp:123
EFSW_API const char * efsw_getlasterror()
Retreive last error occured by file-watcher.
Definition: FileWatcherCWrapper.cpp:77
void EFSW_API efsw_removewatch(efsw_watcher watcher, const char *directory)
Remove a directory watch. This is a brute force search O(nlogn).
Definition: FileWatcherCWrapper.cpp:98
void EFSW_API efsw_watch(efsw_watcher watcher)
Starts watching ( in other thread )
Definition: FileWatcherCWrapper.cpp:108
int EFSW_API efsw_follow_symlinks_isenabled(efsw_watcher watcher)
Definition: FileWatcherCWrapper.cpp:118
void EFSW_API efsw_removewatch_byid(efsw_watcher watcher, efsw_watchid watchid)
Remove a directory watch. This is a map lookup O(logn).
Definition: FileWatcherCWrapper.cpp:103
efsw_error
Definition: efsw.h:76
void * efsw_watcher
Type for watcher.
Definition: efsw.h:66
void(* efsw_pfn_fileaction_callback)(efsw_watcher watcher, efsw_watchid watchid, const char *dir, const char *filename, enum efsw_action action, const char *old_filename, void *param)
Basic interface for listening for file events.
Definition: efsw.h:87
int EFSW_API efsw_outofscopelinks_isallowed(efsw_watcher watcher)
Definition: FileWatcherCWrapper.cpp:128
Sent when a file is deleted or renamed.
Definition: efsw.h:72
#define EFSW_API
Definition: efsw.h:58
void EFSW_API efsw_follow_symlinks(efsw_watcher watcher, int enable)
Definition: FileWatcherCWrapper.cpp:113
long efsw_watchid
Type for a watch id.
Definition: efsw.h:63
Sent when a file is created or renamed.
Definition: efsw.h:71
efsw_watcher EFSW_API efsw_create(int generic_mode)
Definition: FileWatcherCWrapper.cpp:66
Sent when a file is modified.
Definition: efsw.h:73
efsw_action
Definition: efsw.h:68
void EFSW_API efsw_release(efsw_watcher watcher)
Release the file-watcher and unwatch any directories.
Definition: FileWatcherCWrapper.cpp:71
efsw_watchid EFSW_API efsw_addwatch(efsw_watcher watcher, const char *directory, efsw_pfn_fileaction_callback callback_fn, int recursive, void *param)
Definition: FileWatcherCWrapper.cpp:84