summaryrefslogtreecommitdiffstats
path: root/include/osmocom/abis
diff options
context:
space:
mode:
authorPablo Neira Ayuso2011-06-21 18:16:42 +0200
committerPablo Neira Ayuso2011-06-21 18:16:42 +0200
commit591ddadbe8bc056dd0f619f10fd23306cecad4a8 (patch)
tree5e2ccdc3fc3e3b9a18c88bb24b8c9d6831966d08 /include/osmocom/abis
parentipaccess: create RSL socket in BTS mode (diff)
downloadlibosmo-abis-591ddadbe8bc056dd0f619f10fd23306cecad4a8.tar.gz
libosmo-abis-591ddadbe8bc056dd0f619f10fd23306cecad4a8.tar.xz
libosmo-abis-591ddadbe8bc056dd0f619f10fd23306cecad4a8.zip
ipaccess: initial works to get BTS mode working
This patch adds the initial support to get BTS mode working with the ipaccess driver. Now, the driver handles IPA ping, pong and id_ack messages internally in BTS modes, and it passes the signalling messages to the client application by invoking the callback line operations. Moreover, with this patch, each IPA link object always has one E1 line object associated. Still HSL BTS-mode remains unimplemented.
Diffstat (limited to 'include/osmocom/abis')
-rw-r--r--include/osmocom/abis/ipa.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/abis/ipa.h b/include/osmocom/abis/ipa.h
index 7b5b1e8..69888f5 100644
--- a/include/osmocom/abis/ipa.h
+++ b/include/osmocom/abis/ipa.h
@@ -20,10 +20,10 @@ struct ipa_link {
enum ipa_link_state state;
const char *addr;
uint16_t port;
- int (*process)(struct ipa_link *link, struct msgb *msg);
+ int (*cb)(struct ipa_link *link, struct msgb *msg);
};
-struct ipa_link *ipa_client_link_create(void *ctx, const char *addr, uint16_t port);
+struct ipa_link *ipa_client_link_create(void *ctx, struct e1inp_line *line, const char *addr, uint16_t port, int (*cb)(struct ipa_link *link, struct msgb *msgb));
void ipa_client_link_destroy(struct ipa_link *link);
int ipa_client_link_open(struct ipa_link *link);