X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Fcommand.h;h=719c94b6bb06f57c6be8d149d2769c5b31436985;hp=068df9d0e3d4ff2006f18b2a8b82ff9617f899a5;hb=fad1eaaa42ad5a52d1d9e38b1e94ab027fad5b24;hpb=9e7b31479ba7100f41a5b88b32571cf765cdb3ee diff --git a/src/helper/command.h b/src/helper/command.h index 068df9d0e3..719c94b6bb 100644 --- a/src/helper/command.h +++ b/src/helper/command.h @@ -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