Export get_prop to Rust

This commit is contained in:
topjohnwu
2023-05-21 23:51:30 -07:00
parent a5768e02ea
commit 9fe8741a02
6 changed files with 55 additions and 25 deletions
+2
View File
@@ -2,6 +2,7 @@
#include <string>
#include <vector>
#include <cxx.h>
extern bool RECOVERY_MODE;
extern std::atomic<ino_t> pkg_xml_ino;
@@ -28,6 +29,7 @@ void clear_pkg(const char *pkg, int user_id);
[[noreturn]] void install_module(const char *file);
// System properties
rust::String get_prop_rs(const char *name, bool persist);
std::string get_prop(const char *name, bool persist = false);
int delete_prop(const char *name, bool persist = false);
int set_prop(const char *name, const char *value, bool skip_svc = false);