diff options
| author | Russ White <russ@riw.us> | 2018-04-24 11:31:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-24 11:31:11 -0400 |
| commit | 16ec3ea919e199630fb0dc97e3fbceaf42382a56 (patch) | |
| tree | 71b75e99686ea296232442d6fa3a2e127380a1cb /lib/command_graph.h | |
| parent | 2bf50cee89780ac37c10d3b124def79a6d363410 (diff) | |
| parent | 26fbe47294b56bf58a7452e55d24c4204042959d (diff) | |
Merge pull request #2097 from qlyoung/show-cmdgraph
Show cmdgraph
Diffstat (limited to 'lib/command_graph.h')
| -rw-r--r-- | lib/command_graph.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/command_graph.h b/lib/command_graph.h index ec68e284ed..82d562694c 100644 --- a/lib/command_graph.h +++ b/lib/command_graph.h @@ -116,5 +116,21 @@ extern void cmd_graph_parse(struct graph *graph, struct cmd_element *cmd); extern void cmd_graph_names(struct graph *graph); extern void cmd_graph_merge(struct graph *old, struct graph *new, int direction); +/* + * Print callback for DOT dumping. + * + * See graph.h for more details. + */ +extern void cmd_graph_node_print_cb(struct graph_node *gn, struct buffer *buf); +/* + * Dump command graph to DOT. + * + * cmdgraph + * A command graph to dump + * + * Returns: + * String allocated with MTYPE_TMP representing this graph + */ +char *cmd_graph_dump_dot(struct graph *cmdgraph); #endif /* _FRR_COMMAND_GRAPH_H */ |
