mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-16 12:49:48 +00:00
Upstream system_properties
This commit is contained in:
@@ -42,7 +42,7 @@ class ContextNode {
|
||||
Unmap();
|
||||
}
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(ContextNode);
|
||||
BIONIC_DISALLOW_COPY_AND_ASSIGN(ContextNode);
|
||||
|
||||
bool Open(bool access_rw, bool* fsetxattr_failed);
|
||||
bool CheckAccessAndOpen();
|
||||
|
@@ -86,7 +86,7 @@ struct prop_bt {
|
||||
}
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(prop_bt);
|
||||
BIONIC_DISALLOW_COPY_AND_ASSIGN(prop_bt);
|
||||
};
|
||||
|
||||
class prop_area {
|
||||
@@ -138,10 +138,10 @@ class prop_area {
|
||||
|
||||
prop_bt* root_node();
|
||||
|
||||
prop_bt* find_prop_bt(prop_bt* const bt, const char* name, uint32_t namelen, bool alloc_if_needed);
|
||||
|
||||
/* resetprop: Traverse through the trie and find the node */
|
||||
prop_bt *find_prop_bt(prop_bt *const trie, const char *name, bool alloc_if_needed);
|
||||
prop_bt *find_prop_bt(prop_bt *const bt, const char* name, bool alloc_if_needed);
|
||||
|
||||
prop_bt* find_prop_bt(prop_bt* const bt, const char* name, uint32_t namelen, bool alloc_if_needed);
|
||||
|
||||
const prop_info* find_property(prop_bt* const trie, const char* name, uint32_t namelen,
|
||||
const char* value, uint32_t valuelen, bool alloc_if_needed);
|
||||
@@ -163,5 +163,5 @@ class prop_area {
|
||||
uint32_t reserved_[28];
|
||||
char data_[0];
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(prop_area);
|
||||
BIONIC_DISALLOW_COPY_AND_ASSIGN(prop_area);
|
||||
};
|
||||
|
@@ -84,7 +84,7 @@ struct prop_info {
|
||||
prop_info(const char* name, uint32_t namelen, uint32_t long_offset);
|
||||
|
||||
private:
|
||||
DISALLOW_IMPLICIT_CONSTRUCTORS(prop_info);
|
||||
BIONIC_DISALLOW_IMPLICIT_CONSTRUCTORS(prop_info);
|
||||
};
|
||||
|
||||
static_assert(sizeof(prop_info) == 96, "sizeof struct prop_info must be 96 bytes");
|
||||
|
@@ -52,7 +52,7 @@ class SystemProperties {
|
||||
explicit SystemProperties(bool initialized) : initialized_(initialized) {
|
||||
}
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(SystemProperties);
|
||||
BIONIC_DISALLOW_COPY_AND_ASSIGN(SystemProperties);
|
||||
|
||||
bool Init(const char* filename);
|
||||
bool AreaInit(const char* filename, bool* fsetxattr_failed);
|
||||
|
Reference in New Issue
Block a user