blob: ddb2ae2c2fb36d3d502960730d73c0e533246fab [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
Holger Hans Peter Freyther55467f02011-12-28 19:47:07 +01006struct osmo_fd;
7struct e1inp_sign_link;
8struct e1inp_ts;
9
Pablo Neira Ayuso54b49792011-06-07 12:15:26 +020010/* talloc context for libosmo-abis. */
11extern void *libosmo_abis_ctx;
12
13/* use libosmo_abis_init, this is only for internal use. */
14void e1inp_init(void);
15
Pablo Neira Ayuso35809d62011-06-07 18:12:01 +020016/* hsl requires these functions defined in ipaccess driver. */
Pablo Neira Ayuso4647cad2011-07-02 17:57:58 +020017struct msgb;
Pablo Neira Ayuso35809d62011-06-07 18:12:01 +020018void ipaccess_prepend_header(struct msgb *msg, int proto);
Pablo Neira Ayuso88136fc2011-07-08 16:21:55 +020019struct msgb *ipa_msg_alloc(int headroom);
20void ipa_msg_push_header(struct msgb *msg, uint8_t proto);
Pablo Neira Ayuso35809d62011-06-07 18:12:01 +020021
Holger Hans Peter Freyther55467f02011-12-28 19:47:07 +010022/*
23 * helper for internal drivers, not public
24 */
25void e1inp_close_socket(struct e1inp_ts *ts,
26 struct e1inp_sign_link *sign_link,
27 struct osmo_fd *bfd);
28
29
30
Pablo Neira Ayuso0ba77d52011-06-05 18:32:44 +020031#endif