refactor stellar config
This commit is contained in:
26
src/stellar/stellar_config.h
Normal file
26
src/stellar/stellar_config.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include "packet_io.h"
|
||||
#include "id_generator.h"
|
||||
#include "ip_reassembly.h"
|
||||
#include "session_manager.h"
|
||||
|
||||
struct stellar_config
|
||||
{
|
||||
struct packet_io_options pkt_io_opts;
|
||||
struct id_generator_options id_gen_opts;
|
||||
struct ip_reassembly_options ip_reass_opts;
|
||||
struct session_manager_options sess_mgr_opts;
|
||||
};
|
||||
|
||||
int stellar_config_load(struct stellar_config *config, const char *file);
|
||||
void stellar_config_print(const struct stellar_config *config);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user