summaryrefslogtreecommitdiffstats
path: root/lib/command_graph.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2020-04-28 15:19:24 +0200
committerDavid Lamparter <equinox@diac24.net>2021-02-01 17:28:11 +0100
commitfeb06e7a93af3642d23cad951e2eaf544025f64a (patch)
tree06e07eb6c26b661b3fb152ec07f585cd499f1785 /lib/command_graph.h
parentlib/xref: add xrefs on zlog_* calls (diff)
downloadfrr-feb06e7a93af3642d23cad951e2eaf544025f64a.tar.xz
frr-feb06e7a93af3642d23cad951e2eaf544025f64a.zip
lib/xref: add xrefs for DEFUNs
This allows grabbing a list of all DEFUNs and their help texts through the xref extraction mechanics. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/command_graph.h')
-rw-r--r--lib/command_graph.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/command_graph.h b/lib/command_graph.h
index 179e104a5..09824460e 100644
--- a/lib/command_graph.h
+++ b/lib/command_graph.h
@@ -31,6 +31,7 @@
#include "memory.h"
#include "vector.h"
#include "graph.h"
+#include "xref.h"
#ifdef __cplusplus
extern "C" {
@@ -105,6 +106,7 @@ struct cmd_element {
struct cmd_token *[]);
const char *name; /* symbol name for debugging */
+ struct xref xref;
};
/* text for <cr> command */