blob: aeca02ff3238fc4979d62fb147854a1c72bc4e26 [file] [log] [blame]
Pablo Neira Ayuso0ba77d52011-06-05 18:32:44 +02001#ifndef _INTERNAL_H_
2#define _INTERNAL_H_
3
Pablo Neira Ayuso88136fc2011-07-08 16:21:55 +02004#include <stdint.h>
5
Harald Welteac290ee2020-08-02 10:43:42 +02006/* Amount of data to write to a B-channel in every write() call */
7#define D_BCHAN_TX_GRAN 160
8
Holger Hans Peter Freyther55467f02011-12-28 19:47:07 +01009struct osmo_fd;
10struct e1inp_sign_link;
11struct e1inp_ts;
12
Pablo Neira Ayuso54b49792011-06-07 12:15:26 +020013/* talloc context for libosmo-abis. */
14extern void *libosmo_abis_ctx;
15
16/* use libosmo_abis_init, this is only for internal use. */
17void e1inp_init(void);
18
Neels Hofmeyr0db1d432016-02-22 13:29:09 +010019void e1inp_ipa_set_bind_addr(const char *ip_bind_addr);
20const char *e1inp_ipa_get_bind_addr(void);
21
Holger Hans Peter Freyther9d4fe512013-07-04 19:45:34 +020022/* ipaccess.c requires these functions defined here */
Pablo Neira Ayuso4647cad2011-07-02 17:57:58 +020023struct msgb;
Pablo Neira Ayuso88136fc2011-07-08 16:21:55 +020024struct msgb *ipa_msg_alloc(int headroom);
Pablo Neira Ayuso35809d62011-06-07 18:12:01 +020025
Pau Espin Pedrol8737ad42020-07-14 21:11:56 +020026int e1inp_int_snd_event(struct e1inp_ts *ts, struct e1inp_sign_link *link, int evt);
Holger Hans Peter Freyther55467f02011-12-28 19:47:07 +010027
28
Pablo Neira Ayuso0ba77d52011-06-05 18:32:44 +020029#endif