refact AUTH module
This commit is contained in:
12
components/auth/include/auth.h
Normal file → Executable file
12
components/auth/include/auth.h
Normal file → Executable 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
|
||||
|
||||
Reference in New Issue
Block a user