23 lines
778 B
C
23 lines
778 B
C
#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_
|