Allow NAS init function to fail

master
David Rupprecht 4 years ago committed by David Rupprecht
parent 617fb2ba7e
commit 8c194b887b

@ -39,7 +39,7 @@ class nas : public nas_interface_rrc, public srsran::timer_callback
public:
explicit nas(srsran::task_sched_handle task_sched_);
virtual ~nas();
void init(usim_interface_nas* usim_, rrc_interface_nas* rrc_, gw_interface_nas* gw_, const nas_args_t& args_);
int init(usim_interface_nas* usim_, rrc_interface_nas* rrc_, gw_interface_nas* gw_, const nas_args_t& args_);
void stop();
void run_tti();

@ -46,7 +46,7 @@ nas::nas(srsran::task_sched_handle task_sched_) :
logger(srslog::fetch_basic_logger("NAS"))
{}
void nas::init(usim_interface_nas* usim_, rrc_interface_nas* rrc_, gw_interface_nas* gw_, const nas_args_t& cfg_)
int nas::init(usim_interface_nas* usim_, rrc_interface_nas* rrc_, gw_interface_nas* gw_, const nas_args_t& cfg_)
{
usim = usim_;
rrc = rrc_;
@ -105,6 +105,7 @@ void nas::init(usim_interface_nas* usim_, rrc_interface_nas* rrc_, gw_interface_
}
running = true;
return SRSRAN_SUCCESS;
}
nas::~nas() {}

Loading…
Cancel
Save