Collect dynamic symbols from patch

This commit is contained in:
2025-04-21 23:55:14 +03:00
parent 26752683a1
commit 57b47cec64
9 changed files with 269 additions and 52 deletions

View File

@@ -184,7 +184,7 @@ hiFileWatcher *hi_file_watcher_create() {
memset(fw, 0, sizeof(hiFileWatcher));
if (fw) {
if (!HILOADRES(file_watcher_ctx_init(&fw->context))) {
if (!HIOK(file_watcher_ctx_init(&fw->context))) {
sc_log_error("Failed to initialize watch paths\n");
if (fw->context.fd == -1) {
sc_log_error("Couldn't initialize inotify\n");
@@ -213,7 +213,7 @@ HiloadResult hi_file_watcher_add(struct hiFileWatcher *fw, const char *filename,
mtx_lock(&fw->mutex);
if (!HILOADRES(file_watch_add(&fw->context, flags, filename))) {
if (!HIOK(file_watch_add(&fw->context, flags, filename))) {
mtx_unlock(&fw->mutex);
return HILOAD_FAIL;
}
@@ -240,7 +240,7 @@ HiloadResult hi_file_watcher_remove(struct hiFileWatcher *fw,
}
mtx_lock(&fw->mutex);
if (!HILOADRES(file_watch_remove(&fw->context, filename))) {
if (!HIOK(file_watch_remove(&fw->context, filename))) {
mtx_unlock(&fw->mutex);
return HILOAD_FAIL;
}