You've already forked Zygisk-Assistant
mirror of
https://github.com/snake-4/Zygisk-Assistant.git
synced 2025-09-06 06:37:02 +00:00
30 lines
709 B
C++
30 lines
709 B
C++
#include <string>
|
|
#include <vector>
|
|
#include <unordered_map>
|
|
|
|
#include <mntent.h>
|
|
|
|
class mount_entry_t
|
|
{
|
|
public:
|
|
mount_entry_t(::mntent *entry);
|
|
const std::string &getFsName() const;
|
|
const std::string &getMountPoint() const;
|
|
const std::string &getType() const;
|
|
const std::unordered_map<std::string, std::string> &getOptions() const;
|
|
int getDumpFrequency() const;
|
|
int getPassNumber() const;
|
|
|
|
private:
|
|
void parseMountOptions(const std::string &input);
|
|
|
|
std::string fsname;
|
|
std::string dir;
|
|
std::string type;
|
|
std::unordered_map<std::string, std::string> opts_map;
|
|
int freq;
|
|
int passno;
|
|
};
|
|
|
|
std::vector<mount_entry_t> parseMountsFromPath(const char *path);
|