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:
Pablo Neira Ayuso 2011-05-14 11:32:47 +02:00 committed by Harald Welte
parent 6e52b88a17
commit c68f754b3b
3 changed files with 14 additions and 12 deletions

View File

@ -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();
}

View File

@ -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);
}

View File

@ -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);
}