cli.h 537 B

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