1
0

hotkey_dump.c 758 B

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