diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2020-07-18 15:57:07 +0200 |
---|---|---|
committer | lynxis lazus <lynxis@fe80.eu> | 2020-08-04 10:33:09 +0000 |
commit | 85a8fd3911137bc7e32ad08b4030d578cd2d66ee (patch) | |
tree | 8588c2929ce0aec46be69f7dab4517e2592e753c /include/osmocom/gprs/gprs_bssgp.h | |
parent | 44964981c29d2251a5fed88ca4f87d0732826dfc (diff) |
Gb/BSSGP: replace hardcoded Tx into NS library by a callback
Add bssgp_ns_send callback() to set the transmission path into the
NS library. This allows to use the Gb implementation with
the old NS and the new upcoming NS implementation.
Users of the old NS implementation don't have to set the callback as
the default is the old NS implementation.
Only users of the new NS implementation need to set the callback and
the callback data.
Change-Id: I3a498e6a0d68b87fed80c64199b22395796761b4
Diffstat (limited to 'include/osmocom/gprs/gprs_bssgp.h')
-rw-r--r-- | include/osmocom/gprs/gprs_bssgp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/gprs/gprs_bssgp.h b/include/osmocom/gprs/gprs_bssgp.h index 0f87333a..b9d251cc 100644 --- a/include/osmocom/gprs/gprs_bssgp.h +++ b/include/osmocom/gprs/gprs_bssgp.h @@ -12,7 +12,10 @@ #include <osmocom/gprs/protocol/gsm_08_18.h> /* gprs_bssgp_util.c */ +typedef int (*bssgp_bvc_send)(void *ctx, struct msgb *msg); + extern struct gprs_ns_inst *bssgp_nsi; +void bssgp_set_bssgp_callback(bssgp_bvc_send ns_send, void *data); struct msgb *bssgp_msgb_alloc(void); struct msgb *bssgp_msgb_copy(const struct msgb *msg, const char *name); const char *bssgp_cause_str(enum gprs_bssgp_cause cause); |