icommand.h 416 B

12345678910111213141516171819202122232425
  1. /** @file icommand.h
  2. *
  3. * @brief Klish scheme's "command" entry
  4. */
  5. #ifndef _klish_icommand_h
  6. #define _klish_icommand_h
  7. #include <klish/iparam.h>
  8. #include <klish/iaction.h>
  9. typedef struct icommand_s {
  10. char *name;
  11. char *help;
  12. iparam_t * (*params)[];
  13. iaction_t * (*actions)[];
  14. } icommand_t;
  15. C_DECL_BEGIN
  16. char *icommand_to_text(const icommand_t *icommand, int level);
  17. C_DECL_END
  18. #endif // _klish_icommand_h