aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/abis.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-02-10 10:21:12 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-06 15:50:36 +0200
commit6d5dc060ea333f372a0df45213936ca742e25176 (patch)
treea01e1b8a1b62bbeb40eb3742d534292c146d8ab2 /include/osmo-bts/abis.h
parentb469e7314860794aebd904ebc4a63f877c01c3fc (diff)
migrate away from our own abis.c code to libosmoabis
libosmoabis has a BTS-side implementation of the IPA protocol for years, and osmo-bts should have used that all the time. Unfortunately it had its own local hack, this patch is migrating to the libosmocore implementation.
Diffstat (limited to 'include/osmo-bts/abis.h')
-rw-r--r--include/osmo-bts/abis.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/include/osmo-bts/abis.h b/include/osmo-bts/abis.h
index 1195cae8..6e26cafd 100644
--- a/include/osmo-bts/abis.h
+++ b/include/osmo-bts/abis.h
@@ -3,25 +3,12 @@
#include <osmocom/core/select.h>
#include <osmocom/core/timer.h>
-#include <osmocom/gsm/protocol/ipaccess.h>
#include <osmo-bts/gsm_data.h>
#define OML_RETRY_TIMER 5
#define OML_PING_TIMER 20
-struct ipabis_link {
- int state;
- struct gsm_bts *bts; /* set, if OML link */
- struct gsm_bts_trx *trx; /* set, if RSL link */
- struct osmo_fd bfd;
- struct osmo_timer_list timer;
- struct msgb *rx_msg;
- struct llist_head tx_queue;
- int ping, pong, id_resp;
- uint32_t ip;
-};
-
enum {
LINK_STATE_IDLE = 0,
LINK_STATE_RETRYING,
@@ -29,11 +16,8 @@ enum {
LINK_STATE_CONNECT,
};
-int abis_tx(struct ipabis_link *link, struct msgb *msg);
-struct msgb *abis_msgb_alloc(int headroom);
-void abis_push_ipa(struct msgb *msg, uint8_t proto);
-int abis_open(struct ipabis_link *link, uint32_t ip);
-void abis_close(struct ipabis_link *link);
+struct e1inp_line *abis_open(struct gsm_bts *bts, const char *dst_host,
+ const char *model_name);
int abis_oml_sendmsg(struct msgb *msg);