compilation time reduction - avoid including enb_stack_lte.h in main.cc and include enb_stack_base instead

master
Francisco 4 years ago committed by Andre Puschmann
parent 66712023bb
commit 95cc6238a5

@ -38,7 +38,6 @@
#include "srsenb/hdr/phy/enb_phy_base.h"
#include "srsenb/hdr/stack/enb_stack_base.h"
#include "srsenb/hdr/stack/enb_stack_lte.h"
#include "srslte/common/bcd_helpers.h"
#include "srslte/common/buffer_pool.h"
@ -107,6 +106,8 @@ struct all_args_t {
stack_args_t stack;
};
struct rrc_cfg_t;
/*******************************************************************************
Main eNB class
*******************************************************************************/
@ -135,7 +136,7 @@ public:
private:
const static int ENB_POOL_SIZE = 1024 * 10;
int parse_args(const all_args_t& args_);
int parse_args(const all_args_t& args_, rrc_cfg_t& rrc_cfg);
// eNB components
std::unique_ptr<enb_stack_base> stack;
@ -153,7 +154,6 @@ private:
bool started = false;
phy_cfg_t phy_cfg = {};
rrc_cfg_t rrc_cfg = {};
srslte::LOG_LEVEL_ENUM level(std::string l);

@ -55,7 +55,8 @@ int enb::init(const all_args_t& args_, srslte::logger* logger_)
log->info("%s", get_build_string().c_str());
// Validate arguments
if (parse_args(args_)) {
rrc_cfg_t rrc_cfg = {};
if (parse_args(args_, rrc_cfg)) {
srslte::console("Error processing arguments.\n");
return SRSLTE_ERROR;
}
@ -183,7 +184,7 @@ void enb::stop()
}
}
int enb::parse_args(const all_args_t& args_)
int enb::parse_args(const all_args_t& args_, rrc_cfg_t& rrc_cfg)
{
// set member variable
args = args_;

Loading…
Cancel
Save