aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb/gprs_ns2_internal.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-01-31 11:41:34 +0100
committerHarald Welte <laforge@osmocom.org>2021-02-01 09:39:29 +0100
commitc3aa8f903a58db8af5c2687a3c040fe9f49474fb (patch)
tree2566076c74bd220591bba69a240c0b1b390964ee /src/gb/gprs_ns2_internal.h
parentns2: Add a rate_ctr for each NS-UNBLOCK (diff)
downloadlibosmocore-c3aa8f903a58db8af5c2687a3c040fe9f49474fb.tar.xz
libosmocore-c3aa8f903a58db8af5c2687a3c040fe9f49474fb.zip
ns2: Move to one common/shared ns2_bind_alloc()
Avoid code duplication between three different drivers by sharing the "core" of the bind initialization in a new, shared ns2_bind_alloc(). Change-Id: I535fc68e94fcd695de827dd922706adc1c5a2cb7
Diffstat (limited to 'src/gb/gprs_ns2_internal.h')
-rw-r--r--src/gb/gprs_ns2_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gb/gprs_ns2_internal.h b/src/gb/gprs_ns2_internal.h
index e1497679..4a899ed5 100644
--- a/src/gb/gprs_ns2_internal.h
+++ b/src/gb/gprs_ns2_internal.h
@@ -274,6 +274,9 @@ struct gprs_ns2_vc *ns2_vc_alloc(struct gprs_ns2_vc_bind *bind,
enum gprs_ns2_vc_mode vc_mode,
const char *id);
+int ns2_bind_alloc(struct gprs_ns2_inst *nsi, const char *name,
+ struct gprs_ns2_vc_bind **result);
+
struct msgb *ns2_msgb_alloc(void);
void ns2_sns_write_vty(struct vty *vty, const struct gprs_ns2_nse *nse);