aboutsummaryrefslogtreecommitdiff
path: root/src/hotload.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hotload.h')
-rw-r--r--src/hotload.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/hotload.h b/src/hotload.h
index 8d012f2..5948a21 100644
--- a/src/hotload.h
+++ b/src/hotload.h
@@ -4,12 +4,7 @@
#include <stdbool.h>
#include <Carbon/Carbon.h>
-#define HOTLOADER_CALLBACK(name) void name(ConstFSEventStreamRef stream,\
- void *context,\
- size_t count,\
- void *paths,\
- const FSEventStreamEventFlags *flags,\
- const FSEventStreamEventId *ids)
+#define HOTLOADER_CALLBACK(name) void name(char *absolutepath, char *directory, char *filename)
typedef HOTLOADER_CALLBACK(hotloader_callback);
struct watched_file
@@ -25,14 +20,13 @@ struct hotloader
CFArrayRef path;
bool enabled;
+ hotloader_callback *callback;
struct watched_file watch_list[32];
unsigned watch_count;
};
bool hotloader_begin(struct hotloader *hotloader, hotloader_callback *callback);
void hotloader_end(struct hotloader *hotloader);
-
void hotloader_add_file(struct hotloader *hotloader, const char *file);
-bool hotloader_watched_file(struct hotloader *hotloader, char *absolutepath);
#endif