refact AUTH module

This commit is contained in:
2025-06-08 00:29:35 +01:00
parent d5ed5a31b9
commit 71b6cb7878
16 changed files with 291 additions and 2896 deletions

12
components/auth/include/auth.h Normal file → Executable file
View File

@@ -1,9 +1,17 @@
#ifndef AUTH_H
#define AUTH_H
#pragma once
#include <stdbool.h>
void auth_set_enable(bool value);
bool auth_get_enable(void);
void auth_init(void); // Iniciar serviço
void auth_set_enabled(bool enabled); // Habilitar ou desabilitar leitura
bool auth_is_enabled(void); // Verificar estado
bool auth_add_tag(const char *tag); // Adiciona uma tag válida
bool auth_remove_tag(const char *tag); // Remove tag
bool auth_tag_exists(const char *tag); // Verifica se tag é válida
void auth_list_tags(void); // Opcional: listar no log
#endif // AUTH_H