twn_filewatch.c: typo
This commit is contained in:
parent
98d19495a2
commit
695784301d
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
struct FilewatchEntry {
|
struct FilewatchEntry {
|
||||||
char *path;
|
char *path;
|
||||||
FileatchCallback callback;
|
FilewatchCallback callback;
|
||||||
enum FilewatchAction *actions_pending;
|
enum FilewatchAction *actions_pending;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ static void filewatch_callback(dmon_watch_id watch_id,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool filewatch_add_directory(char const *dir, FileatchCallback callback) {
|
bool filewatch_add_directory(char const *dir, FilewatchCallback callback) {
|
||||||
SDL_assert(dir && callback);
|
SDL_assert(dir && callback);
|
||||||
|
|
||||||
if (!filewatcher_initialized) {
|
if (!filewatcher_initialized) {
|
||||||
@ -82,7 +82,7 @@ bool filewatch_add_directory(char const *dir, FileatchCallback callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool filewatch_add_file(char const *filepath, FileatchCallback callback) {
|
bool filewatch_add_file(char const *filepath, FilewatchCallback callback) {
|
||||||
SDL_assert(filepath && callback);
|
SDL_assert(filepath && callback);
|
||||||
|
|
||||||
if (!filewatcher_initialized) {
|
if (!filewatcher_initialized) {
|
||||||
|
@ -10,11 +10,11 @@ enum FilewatchAction {
|
|||||||
FILEWATCH_ACTION_FILE_MODIFIED,
|
FILEWATCH_ACTION_FILE_MODIFIED,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (*FileatchCallback)(char const *path, enum FilewatchAction action);
|
typedef void (*FilewatchCallback)(char const *path, enum FilewatchAction action);
|
||||||
|
|
||||||
bool filewatch_add_directory(char const *dir, FileatchCallback callback);
|
bool filewatch_add_directory(char const *dir, FilewatchCallback callback);
|
||||||
|
|
||||||
bool filewatch_add_file(char const *file, FileatchCallback callback);
|
bool filewatch_add_file(char const *file, FilewatchCallback callback);
|
||||||
|
|
||||||
void filewatch_poll(void);
|
void filewatch_poll(void);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user