Add visibility pragma to hiload library header.

Add hiload to minimal
This commit is contained in:
2025-03-18 14:43:07 +02:00
parent 97c5ff206a
commit d75dd85209
3 changed files with 24 additions and 1 deletions

View File

@@ -5,6 +5,9 @@
extern "C" {
#endif
// Allows using -fvisibility=hidden by default, decreasing visible symbols
#pragma GCC visibility push(default)
// Return codes for reload_module
typedef enum {
HI_RELOAD_SUCCESS = 0,
@@ -15,11 +18,17 @@ typedef enum {
/* Initialiez the module. Must be called before anything else */
int hi_init();
/* Frees memory and cleans up */
void hi_deinit();
/* Print a random assortment of information from current state */
void hi_print_module_infos();
/* Reload module identified by the name */
ReloadResult hi_reload_module(const char *module_name);
#pragma GCC visibility pop
#ifdef __cplusplus
}
#endif