aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/gprs/gprs_ns.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/gprs/gprs_ns.h')
-rw-r--r--include/osmocom/gprs/gprs_ns.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/gprs/gprs_ns.h b/include/osmocom/gprs/gprs_ns.h
index 130d8c0f..d95924da 100644
--- a/include/osmocom/gprs/gprs_ns.h
+++ b/include/osmocom/gprs/gprs_ns.h
@@ -69,6 +69,9 @@ typedef int gprs_ns_cb_t(enum gprs_ns_evt event, struct gprs_nsvc *nsvc,
/*! \brief An instance of the NS protocol stack */
struct gprs_ns_inst {
+ /*! \brief the unique instance number of this NS instance */
+ uint8_t nr;
+
/*! \brief callback to the user for incoming UNIT DATA IND */
gprs_ns_cb_t *cb;
@@ -145,6 +148,9 @@ struct gprs_nsvc {
/* Create a new NS protocol instance */
struct gprs_ns_inst *gprs_ns_instantiate(gprs_ns_cb_t *cb, void *ctx);
+/* Obtain a NS instance of a given ID */
+struct gprs_ns_inst *gprs_ns_instance_by_id(uint8_t inst_nr);
+
/* Close a NS protocol instance */
void gprs_ns_close(struct gprs_ns_inst *nsi);