Write doxygen comments for Utils
This commit is contained in:
parent
e9d51f14f5
commit
c9c269f8eb
1 changed files with 18 additions and 0 deletions
|
@ -33,6 +33,11 @@ namespace fw
|
||||||
} auth_t;
|
} auth_t;
|
||||||
|
|
||||||
static const uint8_t IPV4ADDRESS_LENGTH = 16;
|
static const uint8_t IPV4ADDRESS_LENGTH = 16;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief the typedef to describe a Firewall rule
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef struct firewall_rules
|
typedef struct firewall_rules
|
||||||
{
|
{
|
||||||
uint8_t key;
|
uint8_t key;
|
||||||
|
@ -44,6 +49,10 @@ namespace fw
|
||||||
struct firewall_rules *next;
|
struct firewall_rules *next;
|
||||||
} firewall_rule_t;
|
} firewall_rule_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief the typedef to describe a network packet
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef struct my_packet
|
typedef struct my_packet
|
||||||
{
|
{
|
||||||
char ip[IPV4ADDRESS_LENGTH];
|
char ip[IPV4ADDRESS_LENGTH];
|
||||||
|
@ -64,12 +73,21 @@ namespace fw
|
||||||
} firewall_fields_t;
|
} firewall_fields_t;
|
||||||
|
|
||||||
static const uint8_t CREDENTIALS_LENGTH = 32;
|
static const uint8_t CREDENTIALS_LENGTH = 32;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief the typedef to describe credentials of the API
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef struct credentials
|
typedef struct credentials
|
||||||
{
|
{
|
||||||
char password[CREDENTIALS_LENGTH];
|
char password[CREDENTIALS_LENGTH];
|
||||||
char username[CREDENTIALS_LENGTH];
|
char username[CREDENTIALS_LENGTH];
|
||||||
} credential_t;
|
} credential_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief the typedef to describe an API endpoint
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef struct api_endpoints
|
typedef struct api_endpoints
|
||||||
{
|
{
|
||||||
char uri[60];
|
char uri[60];
|
||||||
|
|
Reference in a new issue