refactor: move struct laye and struct tunnel to packet.h

This commit is contained in:
luwenpeng
2024-08-22 14:31:46 +08:00
parent 41969adee2
commit 3014e0feef
22 changed files with 159 additions and 216 deletions

View File

@@ -35,16 +35,12 @@ static void signal_handler(int signo)
int main(int argc __attribute__((__unused__)), char **argv __attribute__((__unused__)))
{
const char *stellar_cfg_file = "./conf/stellar.toml";
const char *plugin_cfg_file = "./plugin/spec.toml";
const char *log_cfg_file = "./conf/log.toml";
signal(SIGINT, signal_handler);
signal(SIGQUIT, signal_handler);
signal(SIGTERM, signal_handler);
signal(SIGHUP, signal_handler);
st = stellar_new(stellar_cfg_file, plugin_cfg_file, log_cfg_file);
st = stellar_new("./conf/stellar.toml", "./plugin/spec.toml", "./conf/log.toml");
if (st == NULL)
{
return 0;