server/telnet: fix autocomplete for jimtcl commands
[fw/openocd] / src / helper / command.h
index 068df9d0e3d4ff2006f18b2a8b82ff9617f899a5..719c94b6bb06f57c6be8d149d2769c5b31436985 100644 (file)
@@ -84,6 +84,17 @@ struct command_invocation {
        Jim_Obj *output;
 };
 
+/**
+ * Return true if the command @c cmd is registered by OpenOCD.
+ */
+bool jimcmd_is_oocd_command(Jim_Cmd *cmd);
+
+/**
+ * Return the pointer to the command's private data specified during the
+ * registration of command @a cmd .
+ */
+void *jimcmd_privdata(Jim_Cmd *cmd);
+
 /**
  * Command handlers may be defined with more parameters than the base
  * set provided by command.c.  This macro uses C99 magic to allow