[PATCH] openbsc[master]: gsm0480: fix GSM 04.80 libosmocore API / ABI compatibility

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/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Wed Jan 10 16:30:22 UTC 2018


Review at  https://gerrit.osmocom.org/5740

gsm0480: fix GSM 04.80 libosmocore API / ABI compatibility

Since the I5f8972b86cd4dcb54b643a24b5794a87c8758073, the GSM 04.80
libosmocore API / ABI is changed in order to facilitate external
USSD interface development. The only affected part of OpenBSC
is 'libmsc/ussd.c' which only handles '*#100#' so far.

Change-Id: Ic7fed57115dfa9f06a48adced86cd2fb7779139e
Depends-On: I5f8972b86cd4dcb54b643a24b5794a87c8758073
---
M openbsc/include/openbsc/gsm_04_80.h
M openbsc/src/libmsc/gsm_04_80.c
M openbsc/src/libmsc/ussd.c
3 files changed, 7 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/40/5740/1

diff --git a/openbsc/include/openbsc/gsm_04_80.h b/openbsc/include/openbsc/gsm_04_80.h
index ce1b5c2..e7f552a 100644
--- a/openbsc/include/openbsc/gsm_04_80.h
+++ b/openbsc/include/openbsc/gsm_04_80.h
@@ -8,10 +8,10 @@
 
 int gsm0480_send_ussd_response(struct gsm_subscriber_connection *conn,
 			       const struct msgb *in_msg, const char* response_text,
-			       const struct ss_request *req);
+			       const struct gsm0480_ss_request *req);
 int gsm0480_send_ussd_reject(struct gsm_subscriber_connection *conn,
 			     const struct msgb *msg,
-			     const struct ss_request *request);
+			     const struct gsm0480_ss_request *request);
 
 int msc_send_ussd_notify(struct gsm_subscriber_connection *conn, int level,
 			 const char *text);
diff --git a/openbsc/src/libmsc/gsm_04_80.c b/openbsc/src/libmsc/gsm_04_80.c
index 479d6fb..f417eb6 100644
--- a/openbsc/src/libmsc/gsm_04_80.c
+++ b/openbsc/src/libmsc/gsm_04_80.c
@@ -63,7 +63,7 @@
 /* Send response to a mobile-originated ProcessUnstructuredSS-Request */
 int gsm0480_send_ussd_response(struct gsm_subscriber_connection *conn,
 			       const struct msgb *in_msg, const char *response_text,
-			       const struct ss_request *req)
+			       const struct gsm0480_ss_request *req)
 {
 	struct msgb *msg = gsm48_msgb_alloc_name("GSM 04.08 USSD RSP");
 	struct gsm48_hdr *gh;
@@ -111,7 +111,7 @@
 
 int gsm0480_send_ussd_reject(struct gsm_subscriber_connection *conn,
 			     const struct msgb *in_msg,
-			     const struct ss_request *req)
+			     const struct gsm0480_ss_request *req)
 {
 	struct msgb *msg = gsm48_msgb_alloc_name("GSM 04.08 USSD REJ");
 	struct gsm48_hdr *gh;
diff --git a/openbsc/src/libmsc/ussd.c b/openbsc/src/libmsc/ussd.c
index 488e813..15df8e4 100644
--- a/openbsc/src/libmsc/ussd.c
+++ b/openbsc/src/libmsc/ussd.c
@@ -38,7 +38,8 @@
 const char USSD_TEXT_OWN_NUMBER[] = "*#100#";
 
 /* A network-specific handler function */
-static int send_own_number(struct gsm_subscriber_connection *conn, const struct msgb *msg, const struct ss_request *req)
+static int send_own_number(struct gsm_subscriber_connection *conn,
+	const struct msgb *msg, const struct gsm0480_ss_request *req)
 {
 	char *own_number = conn->subscr->extension;
 	char response_string[GSM_EXTENSION_LENGTH + 20];
@@ -53,7 +54,7 @@
 int handle_rcv_ussd(struct gsm_subscriber_connection *conn, struct msgb *msg)
 {
 	int rc;
-	struct ss_request req;
+	struct gsm0480_ss_request req;
 	struct gsm48_hdr *gh;
 
 	memset(&req, 0, sizeof(req));

-- 
To view, visit https://gerrit.osmocom.org/5740
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic7fed57115dfa9f06a48adced86cd2fb7779139e
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list