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
29 lines
811 B
C++
29 lines
811 B
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
#include <unordered_map>
|
|
#include <mntent.h>
|
|
|
|
namespace Parsers
|
|
{
|
|
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:
|
|
std::string fsname, dir, type;
|
|
std::unordered_map<std::string, std::string> opts_map;
|
|
int freq, passno;
|
|
};
|
|
|
|
const std::vector<mount_entry_t> &parseSelfMounts(bool cached = true);
|
|
std::unordered_map<std::string, std::string> parseMountOptions(const std::string &input);
|
|
}
|