aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-06 17:41:22 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-06 21:01:08 +0000
commite566bddaff55548b9c8ecddd9adece90451c4e58 (patch)
treeb2d0ca7ed7eeea960ce7835c7fc83ef0022188e7
parent608b1a40ff89f7ca8c99fe535a9d7fa159a0ccfb (diff)
vty: introduce and use VTY_CMD_USR_ATTR_NUM
-rw-r--r--include/osmocom/vty/vty.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/osmocom/vty/vty.h b/include/osmocom/vty/vty.h
index fcef08e0..9cadb7ac 100644
--- a/include/osmocom/vty/vty.h
+++ b/include/osmocom/vty/vty.h
@@ -28,6 +28,9 @@
#define VTY_BUFSIZ 512
#define VTY_MAXHIST 20
+/* Number of application / library specific VTY attributes */
+#define VTY_CMD_USR_ATTR_NUM 32
+
/*! VTY events */
enum event {
VTY_SERV,
@@ -193,9 +196,9 @@ struct vty_app_info {
/*! Check if the config is consistent before write */
int (*config_is_consistent)(struct vty *vty);
/*! Description of the application specific VTY attributes (optional). */
- const char * usr_attr_desc[32];
+ const char * usr_attr_desc[VTY_CMD_USR_ATTR_NUM];
/*! Flag letters of the application specific VTY attributes (optional). */
- char usr_attr_letters[32];
+ char usr_attr_letters[VTY_CMD_USR_ATTR_NUM];
};
/* Prototypes. */