some logger changes

This commit is contained in:
2025-04-12 22:28:16 +03:00
parent 6f3c76b005
commit 1a10f79b02
9 changed files with 110 additions and 146 deletions

View File

@@ -1,6 +1,7 @@
#ifndef HILOAD_H_
#define HILOAD_H_
#include "types.h"
#ifdef __cplusplus
extern "C" {
#endif
@@ -8,14 +9,6 @@ extern "C" {
// 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,
HI_RELOAD_NOT_FOUND,
HI_RELOAD_CLOSE_ERROR,
HI_RELOAD_OPEN_ERROR
} ReloadResult;
/**
* Initialiez the module. Must be called before anything else
*/
@@ -34,8 +27,12 @@ void hi_print_loaded_modules(void);
/**
* Reload shared library if it has changed since last reload or init was called
*/
ReloadResult hi_reload_solib(const char *module_name);
HiloadResult hi_reload_solib(const char *module_name);
/**
* Reload all watched modules
*/
HiloadResult hi_reload();
#pragma GCC visibility pop