1
0

hotkey_dump.c 710 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * hotkey_dump.c
  3. */
  4. #include "private.h"
  5. #include "lub/dump.h"
  6. /*--------------------------------------------------------- */
  7. void clish_hotkey_dump(const clish_hotkey_t *this)
  8. {
  9. lub_dump_printf("hotkey(%p)\n", this);
  10. lub_dump_indent();
  11. lub_dump_printf("key : %d\n", this->code);
  12. lub_dump_printf("cmd : %s\n", this->cmd);
  13. lub_dump_undent();
  14. }
  15. /*--------------------------------------------------------- */
  16. void clish_hotkeyv_dump(const clish_hotkeyv_t *this)
  17. {
  18. unsigned int i;
  19. lub_dump_printf("hotkeyv(%p)\n", this);
  20. lub_dump_indent();
  21. for (i = 0; i < this->num; i++)
  22. clish_hotkey_dump(this->hotkeyv[i]);
  23. lub_dump_undent();
  24. }
  25. /*--------------------------------------------------------- */