Files
hiload/include/hiload/hiload.h
2025-04-12 22:28:16 +03:00

45 lines
791 B
C

#ifndef HILOAD_H_
#define HILOAD_H_
#include "types.h"
#ifdef __cplusplus
extern "C" {
#endif
// Allows using -fvisibility=hidden by default, decreasing visible symbols
#pragma GCC visibility push(default)
/**
* Initialiez the module. Must be called before anything else
*/
int hi_init(unsigned n, const char **enabled_modules);
/**
* Frees memory and cleans up
*/
void hi_deinit(void);
/**
* Print a random assortment of information from current state
*/
void hi_print_loaded_modules(void);
/**
* Reload shared library if it has changed since last reload or init was called
*/
HiloadResult hi_reload_solib(const char *module_name);
/**
* Reload all watched modules
*/
HiloadResult hi_reload();
#pragma GCC visibility pop
#ifdef __cplusplus
}
#endif
#endif // HILOAD_H_