Type and naming cleanup

Do not use Hi prefic for things that shouldn't be visible to outside code
This commit is contained in:
2025-05-02 00:15:51 +03:00
parent 3baa45c32e
commit 5539596929
21 changed files with 263 additions and 242 deletions

View File

@@ -2,21 +2,20 @@
#define FILEWATCH_H_
#include "array/array.h"
#include "filewatch_context.h"
#include "types.h"
struct hiFileWatcherContext;
struct hiFileWatch;
typedef struct FileWatcherContext FileWatcherContext;
typedef struct FileWatch FileWatch;
hiFileWatch *file_watch_find_by_wd(struct hiFileWatcherContext *ctx,
FileWatch *file_watch_find_by_wd(FileWatcherContext *ctx,
int wd, size_t *index);
hiFileWatch *file_watch_find_by_path(struct hiFileWatcherContext *ctx,
FileWatch *file_watch_find_by_path(FileWatcherContext *ctx,
const char *path, size_t *index);
HiloadResult file_watch_add(struct hiFileWatcherContext *ctx, u32 mask,
HiResult file_watch_add(FileWatcherContext *ctx, u32 mask,
const char *path);
HiloadResult file_watch_remove(struct hiFileWatcherContext *ctx,
HiResult file_watch_remove(FileWatcherContext *ctx,
const char *path);
void file_watch_destroy_watches(struct hiFileWatcherContext *ctx);
void file_watch_destroy_watches(FileWatcherContext *ctx);
#endif // FILEWATCH_H_