aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libabis/input/hsl.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-05-14 11:32:47 +0200
committerHarald Welte <laforge@gnumonks.org>2011-05-22 21:02:47 +0200
commitc68f754b3b39142fadce1cc7a85624551b68e5d3 (patch)
tree153e3e68fb4db723cdd9906118a983b9f7f6103d /openbsc/src/libabis/input/hsl.c
parent6e52b88a171188076bf3c2c9bedff87472ad52a1 (diff)
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.
Diffstat (limited to 'openbsc/src/libabis/input/hsl.c')
-rw-r--r--openbsc/src/libabis/input/hsl.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/openbsc/src/libabis/input/hsl.c b/openbsc/src/libabis/input/hsl.c
index e842f0dec..c98a22cb4 100644
--- a/openbsc/src/libabis/input/hsl.c
+++ b/openbsc/src/libabis/input/hsl.c
@@ -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);
+}