storing and reading works
This commit is contained in:
parent
d457949a76
commit
89886a65e3
3 changed files with 87 additions and 53 deletions
|
@ -11,13 +11,15 @@ namespace firewall
|
|||
class Storage
|
||||
{
|
||||
private:
|
||||
Preferences preferences;
|
||||
Preferences memory;
|
||||
|
||||
protected:
|
||||
uint8_t retrieve_amount_of_firewall_rules();
|
||||
void store_amount_of_firewall_rules(const uint8_t);
|
||||
uint8_t retrieve_settings_value(const char *);
|
||||
void store_settings_value(const char *, const uint8_t);
|
||||
|
||||
firewall_rule_t *retrieve_firewall_rule(const uint8_t);
|
||||
void store_firewall_rule(const uint8_t &, firewall_rule_t *);
|
||||
void store_firewall_rule(firewall_rule_t *);
|
||||
|
||||
httpsserver::SSLCert *retrieve_certificate();
|
||||
void store_certificate(httpsserver::SSLCert *certificate);
|
||||
|
||||
|
|
Reference in a new issue