aboutsummaryrefslogtreecommitdiff
path: root/src/file_watch.h
diff options
context:
space:
mode:
authorallusive-dev <[email protected]>2023-09-19 17:47:33 +1000
committerallusive-dev <[email protected]>2023-09-19 17:47:33 +1000
commita93aba600b1c5d019b680b9f4ff3fa85d5d43a60 (patch)
tree77f8152222655657472a70e0bfa413a0495dd555 /src/file_watch.h
parentreset (diff)
downloadcompfy-a93aba600b1c5d019b680b9f4ff3fa85d5d43a60.tar.xz
compfy-a93aba600b1c5d019b680b9f4ff3fa85d5d43a60.zip
Fixed broken files/code and other errors
Diffstat (limited to 'src/file_watch.h')
-rw-r--r--src/file_watch.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/file_watch.h b/src/file_watch.h
new file mode 100644
index 0000000..c249cd2
--- /dev/null
+++ b/src/file_watch.h
@@ -0,0 +1,10 @@
+#pragma once
+#include <stdbool.h>
+
+#include <ev.h>
+
+typedef void (*file_watch_cb_t)(void *);
+
+void *file_watch_init(EV_P);
+bool file_watch_add(void *, const char *, file_watch_cb_t, void *);
+void file_watch_destroy(EV_P_ void *);