some logger changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user