src: add libosmo_abis_init(void *ctx) to set the talloc context

This function is called during initialization, so we can set what's
the talloc context for the application and the library.
diff --git a/src/input/hsl.c b/src/input/hsl.c
index 689698c..b7c7897 100644
--- a/src/input/hsl.c
+++ b/src/input/hsl.c
@@ -59,7 +59,7 @@
 #define PRIV_OML 1
 #define PRIV_RSL 2
 
-static void *tall_bsc_ctx;
+static void *tall_hsl_ctx;
 
 /* data structure for one E1 interface with A-bis */
 struct hsl_e1_handle {
@@ -292,7 +292,9 @@
 
 void e1inp_hsl_init(void)
 {
-	e1h = talloc_zero(tall_bsc_ctx, struct hsl_e1_handle);
+	tall_hsl_ctx = talloc_named_const(libosmo_abis_ctx, 1, "hsl");
+
+	e1h = talloc_zero(tall_hsl_ctx, struct hsl_e1_handle);
 	if (!e1h)
 		return;
 
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index 40d69b6..ef773ba 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -46,7 +46,7 @@
 #define PRIV_OML 1
 #define PRIV_RSL 2
 
-static void *tall_bsc_ctx;
+static void *tall_ipa_ctx;
 
 /* data structure for one E1 interface with A-bis */
 struct ia_e1_handle {
@@ -378,7 +378,7 @@
 	if (!(what & BSC_FD_READ))
 		return 0;
 
-	bfd = talloc_zero(tall_bsc_ctx, struct osmo_fd);
+	bfd = talloc_zero(tall_ipa_ctx, struct osmo_fd);
 	if (!bfd)
 		return -ENOMEM;
 
@@ -502,7 +502,9 @@
 
 void e1inp_ipaccess_init(void)
 {
-	e1h = talloc_zero(tall_bsc_ctx, struct ia_e1_handle);
+	tall_ipa_ctx = talloc_named_const(libosmo_abis_ctx, 1, "ipa");
+
+	e1h = talloc_zero(tall_ipa_ctx, struct ia_e1_handle);
 	if (!e1h)
 		return;