cli.h 644 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <cli/cli.h>
  3. #if __has_include(<toolbox/cli/cli_command.h>)
  4. #include <toolbox/cli/cli_command.h>
  5. #endif
  6. #if __has_include(<toolbox/cli/cli_registry.h>)
  7. #include <toolbox/cli/cli_registry.h>
  8. #endif
  9. #include "../types/plugin_state.h"
  10. typedef struct TotpCliContext TotpCliContext;
  11. /**
  12. * @brief Registers TOTP CLI handler
  13. * @param plugin_state application state
  14. * @return TOTP CLI context
  15. */
  16. TotpCliContext* totp_cli_register_command_handler(PluginState* plugin_state);
  17. /**
  18. * @brief Unregisters TOTP CLI handler
  19. * @param context application state
  20. */
  21. void totp_cli_unregister_command_handler(TotpCliContext* context);