feature: stellar dev API support stellar_new()/stellar_run()/stellar_free()/stellar_loopbreak()

This commit is contained in:
luwenpeng
2024-08-19 17:28:45 +08:00
parent 28f50b922b
commit 520eb085b8
7 changed files with 197 additions and 83 deletions

View File

@@ -53,7 +53,12 @@ int stellar_get_worker_thread_num(struct stellar *st);
uint16_t stellar_get_current_thread_index();
// only send user crafted packet, can't send packet which come from network
void stellar_send_build_packet(struct stellar *st, struct packet *pkt);
int stellar_run(int argc, char **argv);
struct stellar;
struct stellar *stellar_new(const char *stellar_cfg_file, const char *plugin_cfg_file, const char *log_cfg_file);
void stellar_run(struct stellar *st);
void stellar_free(struct stellar *st);
void stellar_loopbreak(struct stellar *st);
#ifdef __cplusplus
}