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
Fixed companion NS and moved code to namespaces
This commit is contained in:
@@ -2,25 +2,27 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <unordered_map>
|
||||
|
||||
#include <mntent.h>
|
||||
|
||||
class mount_entry_t
|
||||
namespace Parsers
|
||||
{
|
||||
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;
|
||||
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;
|
||||
};
|
||||
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);
|
||||
const std::vector<mount_entry_t> &parseSelfMounts(bool cached = true);
|
||||
std::unordered_map<std::string, std::string> parseMountOptions(const std::string &input);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user