Fix Linux inotify event handling and simplify module events
- Simplify to STK_MOD_LOAD/STK_MOD_UNLOAD event types - Replace IN_CREATE/IN_MODIFY with IN_CLOSE_WRITE to wait for complete writes - Update watch flags to IN_CLOSE_WRITE | IN_DELETE | IN_MOVED_TO | IN_MOVED_FROM
This commit is contained in:
+1
-6
@@ -11,12 +11,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
STK_FILE_CREATED,
|
||||
STK_FILE_MODIFIED,
|
||||
STK_FILE_DELETED,
|
||||
STK_FILE_RENAMED
|
||||
} stk_file_event_t;
|
||||
typedef enum { STK_MOD_LOAD, STK_MOD_UNLOAD } stk_module_event_t;
|
||||
|
||||
int stk_init(const char *mod_dir);
|
||||
int stk_shutdown(void);
|
||||
|
||||
Reference in New Issue
Block a user