aboutsummaryrefslogtreecommitdiff
path: root/autoreload.h
diff options
context:
space:
mode:
Diffstat (limited to 'autoreload.h')
-rw-r--r--autoreload.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/autoreload.h b/autoreload.h
index 6a3053c..bb30eb6 100644
--- a/autoreload.h
+++ b/autoreload.h
@@ -23,13 +23,14 @@
typedef struct {
int fd;
- int wd;
- bool watching_dir;
+ int wd_dir;
+ int wd_file;
+ char *filename;
} arl_t;
-void arl_cleanup(arl_t*);
-bool arl_handle(arl_t*, const char*);
void arl_init(arl_t*);
-void arl_setup(arl_t*, const char*);
+void arl_cleanup(arl_t*);
+void arl_setup(arl_t*, const char* /* result of realpath(3) */);
+bool arl_handle(arl_t*);
#endif /* AUTORELOAD_H */