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/include/internal.h b/include/internal.h
index 131e12b..24ec63e 100644
--- a/include/internal.h
+++ b/include/internal.h
@@ -1,6 +1,12 @@
 #ifndef _INTERNAL_H_
 #define _INTERNAL_H_
 
+/* talloc context for libosmo-abis. */
+extern void *libosmo_abis_ctx;
+
+/* use libosmo_abis_init, this is only for internal use. */
+void e1inp_init(void);
+
 /* things I don't know what to do with yet. */
 
 /* extracted from include/openbsc/debug.h. */
diff --git a/include/osmocom/abis/Makefile.am b/include/osmocom/abis/Makefile.am
index 8bdcc96..3093ee5 100644
--- a/include/osmocom/abis/Makefile.am
+++ b/include/osmocom/abis/Makefile.am
@@ -1,3 +1,3 @@
-osmoabis_HEADERS = e1_input.h subchan_demux.h ipaccess.h trau_frame.h
+osmoabis_HEADERS = abis.h e1_input.h subchan_demux.h ipaccess.h trau_frame.h
 
 osmoabisdir = $(includedir)/osmocom/gsm/abis
diff --git a/include/osmocom/abis/abis.h b/include/osmocom/abis/abis.h
new file mode 100644
index 0000000..af8c64c
--- /dev/null
+++ b/include/osmocom/abis/abis.h
@@ -0,0 +1,6 @@
+#ifndef _OSMO_ABIS_H_
+#define _OSMO_ABIS_H_
+
+void libosmo_abis_init(void *ctx);
+
+#endif
diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h
index c5a4137..a7ac578 100644
--- a/include/osmocom/abis/e1_input.h
+++ b/include/osmocom/abis/e1_input.h
@@ -208,9 +208,6 @@
 extern struct llist_head e1inp_driver_list;
 extern struct llist_head e1inp_line_list;
 
-int e1inp_vty_init(void);
-void e1inp_init(void);
-
 int _abis_nm_sendmsg(struct msgb *msg, int to_trx_oml);
 
 /* XXX */