add threaded filewatcher

This commit is contained in:
2025-03-27 01:24:57 +02:00
parent 6d0cbbb011
commit 2015894068
20 changed files with 600 additions and 95 deletions

View File

@@ -16,18 +16,28 @@ typedef enum {
HI_RELOAD_OPEN_ERROR
} ReloadResult;
/* Initialiez the module. Must be called before anything else */
int hi_init();
/**
* Initialiez the module. Must be called before anything else
*/
int hi_init(unsigned n, const char **enabled_modules);
/* Frees memory and cleans up */
/**
* Frees memory and cleans up
*/
void hi_deinit();
/* Print a random assortment of information from current state */
/**
* Print a random assortment of information from current state
*/
void hi_print_module_infos();
/* Reload shared library if it has changed since last reload or init was called */
/**
* Reload shared library if it has changed since last reload or init was called
*/
ReloadResult hi_reload_solib(const char *module_name);
#pragma GCC visibility pop
#ifdef __cplusplus