Change in libosmocore[master]: gprs_ns2: add gprs_ns2_nse_nsei() to get the nsei of a nse

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Mon Oct 12 01:16:50 UTC 2020


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/20554 )


Change subject: gprs_ns2: add gprs_ns2_nse_nsei() to get the nsei of a nse
......................................................................

gprs_ns2: add gprs_ns2_nse_nsei() to get the nsei of a nse

Change-Id: I5f67e6a9bf4cb322bd169061fee0a528012ed54d
---
M include/osmocom/gprs/gprs_ns2.h
M src/gb/gprs_ns2.c
M src/gb/libosmogb.map
3 files changed, 11 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/54/20554/1

diff --git a/include/osmocom/gprs/gprs_ns2.h b/include/osmocom/gprs/gprs_ns2.h
index cbd6647..d798ac4 100644
--- a/include/osmocom/gprs/gprs_ns2.h
+++ b/include/osmocom/gprs/gprs_ns2.h
@@ -99,6 +99,7 @@
 
 struct gprs_ns2_nse *gprs_ns2_nse_by_nsei(struct gprs_ns2_inst *nsi, uint16_t nsei);
 struct gprs_ns2_nse *gprs_ns2_create_nse(struct gprs_ns2_inst *nsi, uint16_t nsei);
+uint16_t gprs_ns2_nse_nsei(struct gprs_ns2_nse *nse);
 void gprs_ns2_free_nse(struct gprs_ns2_nse *nse);
 
 /* create vc */
diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c
index 7a15352..9f9d1cc 100644
--- a/src/gb/gprs_ns2.c
+++ b/src/gb/gprs_ns2.c
@@ -568,6 +568,15 @@
 	return nse;
 }
 
+/*! Return the NSEI
+ * \param[in] nse NS Entity
+ * \return the nsei.
+ */
+uint16_t gprs_ns2_nse_nsei(struct gprs_ns2_nse *nse)
+{
+	return nse->nsei;
+}
+
 /*! Destroy given NS Entity.
  *  \param[in] nse NS Entity to destroy */
 void gprs_ns2_free_nse(struct gprs_ns2_nse *nse)
diff --git a/src/gb/libosmogb.map b/src/gb/libosmogb.map
index 980b317..3d1d5d6 100644
--- a/src/gb/libosmogb.map
+++ b/src/gb/libosmogb.map
@@ -98,6 +98,7 @@
 gprs_ns2_ll_str_buf;
 gprs_ns2_ll_str_c;
 gprs_ns2_nse_by_nsei;
+gprs_ns2_nse_nsei;
 gprs_ns2_nsvc_by_nsvci;
 gprs_ns2_nsvc_by_sockaddr;
 gprs_ns2_recv_prim;

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/20554
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I5f67e6a9bf4cb322bd169061fee0a528012ed54d
Gerrit-Change-Number: 20554
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201012/1d5e9ee5/attachment.htm>


More information about the gerrit-log mailing list