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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#ifndef _INTERNAL_H_
#define _INTERNAL_H_
#include <stdint.h>
/* Amount of data to write to a B-channel in every write() call */
#define D_BCHAN_TX_GRAN 160
struct osmo_fd;
struct e1inp_sign_link;
struct e1inp_ts;
/*! parameters describing the keep-alive FSM (timeouts). */
struct ipa_keepalive_params {
/*! interval (seconds) in which to send IPA CCM PING requests to the peer. */
unsigned int interval;
/*! time (seconds) to wait for an IPA CCM PONG in response to a IPA CCM PING before giving up. */
unsigned int wait_for_resp;
};
struct ipa_proto_pars {
uint8_t dscp;
uint8_t priority;
};
struct ipa_pars {
struct ipa_proto_pars oml;
struct ipa_proto_pars rsl;
};
/* global parameters of IPA input driver */
extern struct ipa_pars g_e1inp_ipaccess_pars;
/* talloc context for libosmo-abis. */
extern void *libosmo_abis_ctx;
/* use libosmo_abis_init, this is only for internal use. */
void e1inp_init(void);
void e1inp_ipa_set_bind_addr(const char *ip_bind_addr);
const char *e1inp_ipa_get_bind_addr(void);
/* ipaccess.c requires these functions defined here */
struct msgb;
struct msgb *ipa_msg_alloc(int headroom);
int e1inp_int_snd_event(struct e1inp_ts *ts, struct e1inp_sign_link *link, int evt);
#endif
|