aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/abis.h
blob: 6e26cafd1472325e7fd3227aead3f8f2286715ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _ABIS_H
#define _ABIS_H

#include <osmocom/core/select.h>
#include <osmocom/core/timer.h>

#include <osmo-bts/gsm_data.h>

#define	OML_RETRY_TIMER		5
#define	OML_PING_TIMER		20

enum {
	LINK_STATE_IDLE = 0,
	LINK_STATE_RETRYING,
	LINK_STATE_CONNECTING,
	LINK_STATE_CONNECT,
};

struct e1inp_line *abis_open(struct gsm_bts *bts, const char *dst_host,
			     const char *model_name);


int abis_oml_sendmsg(struct msgb *msg);
int abis_rsl_sendmsg(struct msgb *msg);

#endif /* _ABIS_H */