in-meory storage for router profiles

This commit is contained in:
orignal 2023-02-11 16:22:02 -05:00
parent 86fc12e395
commit 48a3c767e5
4 changed files with 74 additions and 26 deletions

View file

@ -251,7 +251,7 @@ namespace data
bool SaveToFile (const std::string& fullPath);
std::shared_ptr<RouterProfile> GetProfile () const;
void SaveProfile () { if (m_Profile) m_Profile->Save (GetIdentHash ()); };
void DropProfile () { m_Profile = nullptr; };
void Update (const uint8_t * buf, size_t len);
void DeleteBuffer () { m_Buffer = nullptr; };