]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/command.h
lib: typesafe rb-tree
[mirror_frr.git] / lib / command.h
index cfe0114297592b29bd8489f14fe452065c196b22..a5f9616dbf3c74a9989d02fed021bd3a4690c3eb 100644 (file)
 #include "hash.h"
 #include "command_graph.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 DECLARE_MTYPE(HOST)
 DECLARE_MTYPE(COMPLETION)
 
@@ -77,6 +81,7 @@ enum node_type {
        CONFIG_NODE,             /* Config node. Default mode of config file. */
        DEBUG_NODE,              /* Debug node. */
        VRF_DEBUG_NODE,          /* Vrf Debug node. */
+       NORTHBOUND_DEBUG_NODE,   /* Northbound Debug node. */
        DEBUG_VNC_NODE,          /* Debug VNC node. */
        AAA_NODE,                /* AAA node. */
        KEYCHAIN_NODE,           /* Key-chain node. */
@@ -313,6 +318,9 @@ struct cmd_node {
 
 #define DEFPY_ATTR(funcname, cmdname, cmdstr, helpstr, attr)                   \
        DEFUN_ATTR(funcname, cmdname, cmdstr, helpstr, attr)
+
+#define DEFPY_HIDDEN(funcname, cmdname, cmdstr, helpstr)                       \
+       DEFUN_HIDDEN(funcname, cmdname, cmdstr, helpstr)
 #endif /* VTYSH_EXTRACT_PL */
 
 /* Some macroes */
@@ -487,4 +495,9 @@ cmd_variable_handler_register(const struct cmd_variable_handler *cvh);
 extern char *cmd_variable_comp2str(vector comps, unsigned short cols);
 
 extern void command_setup_early_logging(const char *dest, const char *level);
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _ZEBRA_COMMAND_H */