Added cache for parsers

This commit is contained in:
snake-4
2024-04-27 16:56:50 +02:00
parent 8c4fbcc207
commit e431fc2c6a
8 changed files with 76 additions and 56 deletions

View File

@@ -30,4 +30,4 @@ private:
std::unordered_map<std::string, std::string> mount_options, super_options;
};
std::vector<mountinfo_entry_t> parseMountinfosFromPath(const char *path);
const std::vector<mountinfo_entry_t> &parseSelfMountinfo(bool cached = true);