0ad/source/lib/sysdep/dir_watch.h
janwas 1c1200a049 - massive overhaul of lib error code returning. int -> LibError everywhere.
- add translators from errno and GetLastError to LibError
- clarified return values of callbacks (they must return
INFO_CB_CONTINUE to continue)
- this exposed a few bugs in error handling chains (returning incorrect
values); also reduced say-nothing instances of return -1.
- move CHECK_ERR etc. macros to lib_error

This was SVN commit r3229.
2005-12-11 22:23:55 +00:00

9 lines
305 B
C
Executable File

// path: portable and relative, must add current directory and convert to native
// better to use a cached string from rel_chdir - secure
extern LibError dir_add_watch(const char* path, intptr_t* watch);
extern LibError dir_cancel_watch(intptr_t watch);
extern LibError dir_get_changed_file(char* fn);