#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
typedef enum ErrorCorrectionLevel {
Low,
Medium,
Quartile,
High,
} ErrorCorrectionLevel;
#ifdef __cplusplus
extern "C" {
#endif
const char *create_secret(uint8_t len) CF_SWIFT_NAME(create_secret(len:));
#if defined(DEFINE_QRCODE)
const char *qr_code(const char *secret,
const char *name,
const char *title,
uint32_t witdh,
uint32_t height,
enum ErrorCorrectionLevel level) CF_SWIFT_NAME(qr_code(secret:name:title:witdh:height:level:));
#endif
const char *qr_code_url(const char *secret,
const char *name,
const char *title,
uint32_t witdh,
uint32_t height,
enum ErrorCorrectionLevel level) CF_SWIFT_NAME(qr_code_url(secret:name:title:witdh:height:level:));
const char *get_code(const char *secret,
uint64_t time_slice) CF_SWIFT_NAME(get_code(secret:time_slice:));
bool verify_code(const char *secret,
const char *code,
uint64_t discrepancy,
uint64_t time_slice) CF_SWIFT_NAME(verify_code(secret:code:discrepancy:time_slice:));
void free_str(char *str) CF_SWIFT_NAME(free_str(str:));
#ifdef __cplusplus
} #endif