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:
2025-11-06 20:06:15 +01:00
parent 0cf819fc73
commit 13604e3f3e
2 changed files with 13 additions and 27 deletions
+1 -6
View File
@@ -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);