ESP32/ESP8266 Firewall 1.0.0
a software firewall for ESP23 or ESP8266
fw::Storage Class Reference

The Storage will handle Firewall rules in EEPROM. More...

#include <Storage.hpp>

Inheritance diagram for fw::Storage:
fw::Firewall

Public Member Functions

 Storage ()
 Construct a new Storage object.
 
 ~Storage ()
 Destroy the Storage object.
 

Protected Member Functions

uint8_t retrieve_amount_of_rules ()
 retrieve the current amount of Firewall rules in the Storage More...
 
void store_amount_of_rules (const uint8_t new_amount)
 store a new amount of Firewall rules in the Storage More...
 
firewall_rule_tretrieve_firewall_rule (const uint8_t key)
 retrieve a Firewall rule from Storage More...
 
void store_all_firewall_rules (firewall_rule_t *rule_head)
 store all Firewall rules in Storage More...
 
void store_firewall_rule (firewall_rule_t *rule_ptr)
 store Firewall rule in Storage More...
 

Private Attributes

Preferences memory
 

Detailed Description

The Storage will handle Firewall rules in EEPROM.

Member Function Documentation

◆ retrieve_amount_of_rules()

uint8_t fw::Storage::retrieve_amount_of_rules ( )
protected

retrieve the current amount of Firewall rules in the Storage

Returns
uint8_t

◆ retrieve_firewall_rule()

firewall_rule_t * fw::Storage::retrieve_firewall_rule ( const uint8_t  key)
protected

retrieve a Firewall rule from Storage

Parameters
key
Returns
firewall_rule_t*

◆ store_all_firewall_rules()

void fw::Storage::store_all_firewall_rules ( firewall_rule_t rule_head)
protected

store all Firewall rules in Storage

Parameters
rule_head

◆ store_amount_of_rules()

void fw::Storage::store_amount_of_rules ( const uint8_t  new_amount)
protected

store a new amount of Firewall rules in the Storage

Parameters
new_amount

◆ store_firewall_rule()

void fw::Storage::store_firewall_rule ( firewall_rule_t rule_ptr)
protected

store Firewall rule in Storage

Parameters
rule_ptr

The documentation for this class was generated from the following files: