aboutsummaryrefslogtreecommitdiff
path: root/src/file_watch.h
diff options
context:
space:
mode:
authorAllusive_ <[email protected]>2023-08-01 09:00:18 +1000
committerGitHub <[email protected]>2023-08-01 09:00:18 +1000
commit0147e7dd165f837662a480938e2083a5ac707586 (patch)
tree3e38624c86c7119703cddb524ac01278491c8a3f /src/file_watch.h
parentAdd files via upload (diff)
downloadcompfy-0147e7dd165f837662a480938e2083a5ac707586.tar.xz
compfy-0147e7dd165f837662a480938e2083a5ac707586.zip
Add files via upload
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 *);