make filewatcher more robust
This commit is contained in:
22
src/filewatcher/filewatch.h
Normal file
22
src/filewatcher/filewatch.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef FILEWATCH_H_
|
||||
#define FILEWATCH_H_
|
||||
|
||||
#include "array/array.h"
|
||||
#include "filewatch_context.h"
|
||||
#include "types.h"
|
||||
|
||||
struct hiFileWatcherContext;
|
||||
struct hiFileWatch;
|
||||
|
||||
hiFileWatch *file_watch_find_by_wd(struct hiFileWatcherContext *ctx,
|
||||
int wd, size_t *index);
|
||||
hiFileWatch *file_watch_find_by_path(struct hiFileWatcherContext *ctx,
|
||||
const char *path, size_t *index);
|
||||
|
||||
HiloadResult file_watch_add(struct hiFileWatcherContext *ctx, u32 mask,
|
||||
const char *path);
|
||||
HiloadResult file_watch_remove(struct hiFileWatcherContext *ctx,
|
||||
const char *path);
|
||||
void file_watch_destroy_watches(struct hiFileWatcherContext *ctx);
|
||||
|
||||
#endif // FILEWATCH_H_
|
||||
Reference in New Issue
Block a user