summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-08-19 17:28:45 +0800
committerluwenpeng <[email protected]>2024-08-19 17:28:45 +0800
commit520eb085b8fb1217023f321a727c350ba5ef0902 (patch)
tree518a7028fdcfb834945bd7a76723a6936b9d00c3 /include
parent28f50b922b843f81a37e796906344d4c7bcab874 (diff)
feature: stellar dev API support stellar_new()/stellar_run()/stellar_free()/stellar_loopbreak()
Diffstat (limited to 'include')
-rw-r--r--include/stellar/stellar.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/stellar/stellar.h b/include/stellar/stellar.h
index 6007da4..ed204dc 100644
--- a/include/stellar/stellar.h
+++ b/include/stellar/stellar.h
@@ -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
}