cli.h 486 B

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