aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-07-08 21:04:11 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2011-07-08 21:04:11 +0200
commit495ddb66d842990f6803119eccce021b5882be8f (patch)
tree7709db91d7f62e0ae3f64fec7fccf55c89080963
parent34073fbc97de2db185f746b25fa79b2013d9aa6a (diff)
ipaccess: hack to get openBSC's ipaccess-config tool working
Export one function that we shouldn't, it's a quick way to fix the ipaccess-config in openBSC.
-rw-r--r--include/osmocom/abis/ipaccess.h3
-rw-r--r--src/input/ipaccess.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/include/osmocom/abis/ipaccess.h b/include/osmocom/abis/ipaccess.h
index 7083ce9b..1999fa4a 100644
--- a/include/osmocom/abis/ipaccess.h
+++ b/include/osmocom/abis/ipaccess.h
@@ -108,4 +108,7 @@ struct hsl_unit {
uint64_t serno;
};
+/* quick solution to get openBSC's ipaccess tools working. */
+int ipaccess_fd_cb(struct osmo_fd *bfd, unsigned int what);
+
#endif /* _OSMO_PROTO_IPACCESS_H */
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index 18646833..d977bc25 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -543,7 +543,7 @@ int ipaccess_bts_write_cb(struct ipa_client_link *link)
}
/* callback from select.c in case one of the fd's can be read/written */
-static int ipaccess_fd_cb(struct osmo_fd *bfd, unsigned int what)
+int ipaccess_fd_cb(struct osmo_fd *bfd, unsigned int what)
{
int rc = 0;