7#include "Preferences.h"
36 uint16_t eeprom_amount_of_rules;
37 uint16_t eeprom_rules_head;
39 uint16_t eeprom_rule_position(uint8_t key);
The Storage will handle Firewall rules in EEPROM.
Definition: Storage.hpp:18
~Storage()
Destroy the Storage object.
Definition: Storage.cpp:16
firewall_rule_t * retrieve_firewall_rule(const uint8_t key)
retrieve a Firewall rule from Storage
Definition: Storage.cpp:54
void store_all_firewall_rules(firewall_rule_t *rule_head)
store all Firewall rules in Storage
Definition: Storage.cpp:81
void store_amount_of_rules(const uint8_t new_amount)
store a new amount of Firewall rules in the Storage
Definition: Storage.cpp:42
Storage()
Construct a new Storage object.
Definition: Storage.cpp:5
void store_firewall_rule(firewall_rule_t *rule_ptr)
store Firewall rule in Storage
Definition: Storage.cpp:91
uint8_t retrieve_amount_of_rules()
retrieve the current amount of Firewall rules in the Storage
Definition: Storage.cpp:27