mirror of
https://github.com/FRRouting/frr.git
synced 2025-05-01 05:57:15 +02:00
vty: add some defines for backwards compatibility
Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
parent
a70638dad6
commit
dcc0a0d117
|
@ -182,6 +182,11 @@ struct vty_arg
|
||||||
/* Small macro to determine newline is newline only or linefeed needed. */
|
/* Small macro to determine newline is newline only or linefeed needed. */
|
||||||
#define VTYNL ((vty->type == VTY_TERM) ? "\r\n" : "\n")
|
#define VTYNL ((vty->type == VTY_TERM) ? "\r\n" : "\n")
|
||||||
|
|
||||||
|
/* for compatibility */
|
||||||
|
#define VTY_NEWLINE VTYNL
|
||||||
|
#define VTY_GET_INTEGER(desc,v,str) {(v)=strtoul ((str), NULL, 10);}
|
||||||
|
#define VTY_GET_INTEGER_RANGE(desc,v,str,min,max) {(v)=strtoul ((str), NULL, 10);}
|
||||||
|
|
||||||
/* Default time out value */
|
/* Default time out value */
|
||||||
#define VTY_TIMEOUT_DEFAULT 600
|
#define VTY_TIMEOUT_DEFAULT 600
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue