jolly has uploaded this change for review.

View Change

Fix "Add new VTY node for libosmo-octoi"

This fixes the commit 0632389e510f0241fe76bd9f8fb6854384da6f3c.

Keep reserved node names using defines. This allows to build older
version of libosmo-octoi, which still use the reserved node names.

Use the same reserved node names that were used on older versions of
libosmo-octoi, so that it does not break the ABI. Therefore move the
recently added L_CS7_QOS_CLASS_NODE after the four node names for
libosmo-octoi.

Change-Id: I8b413d69a2090625265dafba2912fc025ac3cfe3
---
M include/osmocom/vty/command.h
1 file changed, 7 insertions(+), 2 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/94/43694/1
diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h
index 4531996..22c2ac8 100644
--- a/include/osmocom/vty/command.h
+++ b/include/osmocom/vty/command.h
@@ -103,14 +103,19 @@
L_NS_BIND_NODE, /*!< NS bind node */
L_NS_NSE_NODE, /*!< NS NSE node */

- L_CS7_QOS_CLASS_NODE, /*!< SS7 QoS Class */
-
+ #define RESERVED1_NODE L_OCTOI_SRV_NODE
L_OCTOI_SRV_NODE, /*!< OCTOI server node */
+ #define RESERVED2_NODE L_OCTOI_ACCOUNT_NODE
L_OCTOI_ACCOUNT_NODE, /*!< OCTOI server account node */
+ #define RESERVED3_NODE L_OCTOI_CLNT_NODE
L_OCTOI_CLNT_NODE, /*!< OCTOI client node */
+ #define RESERVED4_NODE L_OCTOI_CLNT_ACCOUNT_NODE
L_OCTOI_CLNT_ACCOUNT_NODE,
/*!< OCTOI client account node */

+ #define RESERVED5_NODE L_CS7_QOS_CLASS_NODE
+ L_CS7_QOS_CLASS_NODE, /*!< SS7 QoS Class */
+
/*
* When adding new nodes to the libosmocore project, these nodes can be
* used to avoid ABI changes for unrelated projects.

To view, visit change 43694. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I8b413d69a2090625265dafba2912fc025ac3cfe3
Gerrit-Change-Number: 43694
Gerrit-PatchSet: 1
Gerrit-Owner: jolly <andreas@eversberg.eu>