diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-10-06 17:41:22 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-10-06 21:01:08 +0000 |
commit | e566bddaff55548b9c8ecddd9adece90451c4e58 (patch) | |
tree | b2d0ca7ed7eeea960ce7835c7fc83ef0022188e7 | |
parent | 608b1a40ff89f7ca8c99fe535a9d7fa159a0ccfb (diff) |
vty: introduce and use VTY_CMD_USR_ATTR_NUM
Change-Id: Ib4327835f5be264ef67a01d8f4733dd2d091eaf1
Related: SYS#4937
-rw-r--r-- | include/osmocom/vty/vty.h | 7 |
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. */ |