Change in osmo-msc[master]: Move enum definition to header file

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

Keith Whyte gerrit-no-reply at lists.osmocom.org
Thu Jan 17 00:09:28 UTC 2019


Keith Whyte has uploaded this change for review. ( https://gerrit.osmocom.org/12598


Change subject: Move enum definition to header file
......................................................................

Move enum definition to header file

Move the definition for the esme bind flags to the header file.
Also corrects a typo in the name of the enum.

Change-Id: I71b2512894ec2a71a25f35f07ff4308035d951f9
---
M src/libmsc/smpp_smsc.c
M src/libmsc/smpp_smsc.h
2 files changed, 5 insertions(+), 5 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/98/12598/1

diff --git a/src/libmsc/smpp_smsc.c b/src/libmsc/smpp_smsc.c
index 2350d84..5e27644 100644
--- a/src/libmsc/smpp_smsc.c
+++ b/src/libmsc/smpp_smsc.c
@@ -49,11 +49,6 @@
 	memset(str, 0, sizeof(*str));			\
 	rc = smpp34_unpack(type, str, data, len)
 
-enum emse_bind {
-	ESME_BIND_RX = 0x01,
-	ESME_BIND_TX = 0x02,
-};
-
 const struct value_string smpp_status_strs[] = {
 	{ ESME_ROK,		"No Error" },
 	{ ESME_RINVMSGLEN,	"Message Length is invalid" },
diff --git a/src/libmsc/smpp_smsc.h b/src/libmsc/smpp_smsc.h
index dc7b7c1..d7a51c1 100644
--- a/src/libmsc/smpp_smsc.h
+++ b/src/libmsc/smpp_smsc.h
@@ -19,6 +19,11 @@
 #define MODE_7BIT	7
 #define MODE_8BIT	8
 
+enum esme_bind {
+	ESME_BIND_RX = 0x01,
+	ESME_BIND_TX = 0x02,
+};
+
 enum esme_read_state {
 	READ_ST_IN_LEN = 0,
 	READ_ST_IN_MSG = 1,

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

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I71b2512894ec2a71a25f35f07ff4308035d951f9
Gerrit-Change-Number: 12598
Gerrit-PatchSet: 1
Gerrit-Owner: Keith Whyte <keith at rhizomatica.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190117/250e24bd/attachment.htm>


More information about the gerrit-log mailing list