abis: add init function for emulated ipaccess/HSL emulated E1 input
This patch is a cleanup. It adds an init function for the ipaccess and HSL emulated E1 input drivers.
This commit is contained in:
parent
6e52b88a17
commit
c68f754b3b
|
@ -634,6 +634,8 @@ static int e1i_sig_cb(unsigned int subsys, unsigned int signal,
|
|||
|
||||
void e1inp_misdn_init(void);
|
||||
void e1inp_dahdi_init(void);
|
||||
void e1inp_ipaccess_init(void);
|
||||
void e1inp_hsl_init(void);
|
||||
|
||||
void e1inp_init(void)
|
||||
{
|
||||
|
@ -645,4 +647,6 @@ void e1inp_init(void)
|
|||
#ifdef HAVE_DAHDI_USER_H
|
||||
e1inp_dahdi_init();
|
||||
#endif
|
||||
e1inp_ipaccess_init();
|
||||
e1inp_hsl_init();
|
||||
}
|
||||
|
|
|
@ -437,12 +437,6 @@ int hsl_setup(struct gsm_network *gsmnet)
|
|||
{
|
||||
int ret;
|
||||
|
||||
/* register the driver with the core */
|
||||
/* FIXME: do this in the plugin initializer function */
|
||||
ret = e1inp_driver_register(&hsl_driver);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
e1h = talloc_zero(tall_bsc_ctx, struct hsl_e1_handle);
|
||||
if (!e1h)
|
||||
return -ENOMEM;
|
||||
|
@ -457,3 +451,8 @@ int hsl_setup(struct gsm_network *gsmnet)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void e1inp_hsl_init(void)
|
||||
{
|
||||
e1inp_driver_register(&hsl_driver);
|
||||
}
|
||||
|
|
|
@ -812,12 +812,6 @@ int ipaccess_setup(struct gsm_network *gsmnet)
|
|||
{
|
||||
int ret;
|
||||
|
||||
/* register the driver with the core */
|
||||
/* FIXME: do this in the plugin initializer function */
|
||||
ret = e1inp_driver_register(&ipaccess_driver);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
e1h = talloc_zero(tall_bsc_ctx, struct ia_e1_handle);
|
||||
if (!e1h)
|
||||
return -ENOMEM;
|
||||
|
@ -838,3 +832,8 @@ int ipaccess_setup(struct gsm_network *gsmnet)
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
void e1inp_ipaccess_init(void)
|
||||
{
|
||||
e1inp_driver_register(&ipaccess_driver);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue