summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso2011-06-23 20:42:19 +0200
committerPablo Neira Ayuso2011-06-23 22:15:22 +0200
commitaf3fed9213666c8fa68ba3a153aa17577df97649 (patch)
tree67fd199d17674d99b80851cc3a8e0cd79a1ddd03 /include
parentipa: add ipa_server_peer infrastructure (diff)
downloadlibosmo-abis-af3fed9213666c8fa68ba3a153aa17577df97649.tar.gz
libosmo-abis-af3fed9213666c8fa68ba3a153aa17577df97649.tar.xz
libosmo-abis-af3fed9213666c8fa68ba3a153aa17577df97649.zip
ipa: add ipa_*_send() to transmit messages
This patch adds ipa_*_send() functions to transmit messages using the new A-bis over IP infrastructure. This patch completes the transmission path support for the A-bis over IP infrastructure.
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/abis/ipa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/abis/ipa.h b/include/osmocom/abis/ipa.h
index 91afd01..f088ec0 100644
--- a/include/osmocom/abis/ipa.h
+++ b/include/osmocom/abis/ipa.h
@@ -31,6 +31,8 @@ struct ipa_server_peer {
struct ipa_server_peer *ipa_server_peer_create(void *ctx, struct ipa_server_link *link, int fd, int (*cb)(struct ipa_server_peer *peer, struct msgb *msg), void *data);
void ipa_server_peer_destroy(struct ipa_server_peer *peer);
+void ipa_server_peer_send(struct ipa_server_peer *peer, struct msgb *msg);
+
enum ipa_client_link_state {
IPA_CLIENT_LINK_STATE_NONE = 0,
IPA_CLIENT_LINK_STATE_CONNECTING = 1,
@@ -56,6 +58,8 @@ void ipa_client_link_destroy(struct ipa_client_link *link);
int ipa_client_link_open(struct ipa_client_link *link);
void ipa_client_link_close(struct ipa_client_link *link);
+void ipa_client_link_send(struct ipa_client_link *link, struct msgb *msg);
+
int ipa_msg_recv(int fd, struct msgb **rmsg);
#endif