✨ feat(module manager): from plugin manager to module manager
This commit is contained in:
@@ -7,15 +7,12 @@ extern "C"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "stellar/mq.h"
|
||||
#include "stellar/log.h"
|
||||
#include "stellar/packet.h"
|
||||
|
||||
struct stellar;
|
||||
|
||||
//return plugin_env
|
||||
typedef void *plugin_on_load_func(struct stellar *st);
|
||||
typedef void plugin_on_unload_func(void *plugin_env);
|
||||
|
||||
|
||||
typedef void plugin_on_packet_func(struct packet *pkt, void *on_packet_cb_arg);
|
||||
//return 0 if success, otherwise return -1.
|
||||
@@ -28,8 +25,6 @@ int stellar_polling_subscribe(struct stellar *st, plugin_on_polling_func on_pol
|
||||
|
||||
void stellar_emit_datapath_telemetry(struct packet *pkt, const char * module, const char *str);
|
||||
|
||||
int stellar_get_worker_thread_num(struct stellar *st);
|
||||
uint16_t stellar_get_current_thread_index();
|
||||
// only send user build packet, can't send packet which come from network
|
||||
void stellar_send_build_packet(struct stellar *st, struct packet *pkt);
|
||||
|
||||
@@ -40,9 +35,6 @@ void stellar_loopbreak(struct stellar *st);
|
||||
void stellar_reload_log_level(struct stellar *st);
|
||||
struct logger *stellar_get_logger(struct stellar *st);
|
||||
|
||||
struct mq_schema *stellar_get_mq_schema(struct stellar *st);
|
||||
struct mq_runtime *stellar_get_mq_runtime(struct stellar *st);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user