Files
lucky-cat/components/control_plane/internal/multimodal/control_plane_multimodal_auth.h
T
2026-06-25 00:34:34 +08:00

37 lines
1022 B
C

/*
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <stdbool.h>
#include <stddef.h>
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
#define CONTROL_PLANE_MULTIMODAL_AUTH_TOKEN_MAX_LEN 256
#define CONTROL_PLANE_MULTIMODAL_AUTH_ID_MAX_LEN 64
#define CONTROL_PLANE_MULTIMODAL_AUTH_VOICE_MAX_LEN 64
typedef struct {
char token[CONTROL_PLANE_MULTIMODAL_AUTH_TOKEN_MAX_LEN];
char workspace_id[CONTROL_PLANE_MULTIMODAL_AUTH_ID_MAX_LEN];
char app_id[CONTROL_PLANE_MULTIMODAL_AUTH_ID_MAX_LEN];
char voice_id[CONTROL_PLANE_MULTIMODAL_AUTH_VOICE_MAX_LEN];
char device_id[CONTROL_PLANE_MULTIMODAL_AUTH_ID_MAX_LEN];
char serial_number[CONTROL_PLANE_MULTIMODAL_AUTH_ID_MAX_LEN];
bool valid;
} control_plane_multimodal_auth_info_t;
esp_err_t control_plane_multimodal_auth_fetch(control_plane_multimodal_auth_info_t *out);
void control_plane_multimodal_auth_clear(void);
#ifdef __cplusplus
}
#endif