Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 1 | #ifndef _INTERNAL_H_ |
| 2 | #define _INTERNAL_H_ |
| 3 | |
Pablo Neira Ayuso | 88136fc | 2011-07-08 16:21:55 +0200 | [diff] [blame] | 4 | #include <stdint.h> |
| 5 | |
Harald Welte | ac290ee | 2020-08-02 10:43:42 +0200 | [diff] [blame^] | 6 | /* Amount of data to write to a B-channel in every write() call */ |
| 7 | #define D_BCHAN_TX_GRAN 160 |
| 8 | |
Holger Hans Peter Freyther | 55467f0 | 2011-12-28 19:47:07 +0100 | [diff] [blame] | 9 | struct osmo_fd; |
| 10 | struct e1inp_sign_link; |
| 11 | struct e1inp_ts; |
| 12 | |
Pablo Neira Ayuso | 54b4979 | 2011-06-07 12:15:26 +0200 | [diff] [blame] | 13 | /* talloc context for libosmo-abis. */ |
| 14 | extern void *libosmo_abis_ctx; |
| 15 | |
| 16 | /* use libosmo_abis_init, this is only for internal use. */ |
| 17 | void e1inp_init(void); |
| 18 | |
Neels Hofmeyr | 0db1d43 | 2016-02-22 13:29:09 +0100 | [diff] [blame] | 19 | void e1inp_ipa_set_bind_addr(const char *ip_bind_addr); |
| 20 | const char *e1inp_ipa_get_bind_addr(void); |
| 21 | |
Holger Hans Peter Freyther | 9d4fe51 | 2013-07-04 19:45:34 +0200 | [diff] [blame] | 22 | /* ipaccess.c requires these functions defined here */ |
Pablo Neira Ayuso | 4647cad | 2011-07-02 17:57:58 +0200 | [diff] [blame] | 23 | struct msgb; |
Pablo Neira Ayuso | 88136fc | 2011-07-08 16:21:55 +0200 | [diff] [blame] | 24 | struct msgb *ipa_msg_alloc(int headroom); |
Pablo Neira Ayuso | 35809d6 | 2011-06-07 18:12:01 +0200 | [diff] [blame] | 25 | |
Pau Espin Pedrol | 8737ad4 | 2020-07-14 21:11:56 +0200 | [diff] [blame] | 26 | int e1inp_int_snd_event(struct e1inp_ts *ts, struct e1inp_sign_link *link, int evt); |
Holger Hans Peter Freyther | 55467f0 | 2011-12-28 19:47:07 +0100 | [diff] [blame] | 27 | |
| 28 | |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 29 | #endif |