config_dump.c 642 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * config_dump.c
  3. */
  4. #include "lub/dump.h"
  5. #include "private.h"
  6. /*--------------------------------------------------------- */
  7. void clish_config_dump(const clish_config_t *this)
  8. {
  9. char *op;
  10. lub_dump_printf("config(%p)\n", this);
  11. lub_dump_indent();
  12. switch (this->op) {
  13. case CLISH_CONFIG_NONE:
  14. op = "NONE";
  15. break;
  16. case CLISH_CONFIG_SET:
  17. op = "SET";
  18. break;
  19. case CLISH_CONFIG_UNSET:
  20. op = "UNSET";
  21. break;
  22. case CLISH_CONFIG_DUMP:
  23. op = "DUMP";
  24. break;
  25. default:
  26. op = "Unknown";
  27. break;
  28. }
  29. lub_dump_printf("op : %s\n", op);
  30. lub_dump_undent();
  31. }
  32. /*--------------------------------------------------------- */