remove: dl.cpp file and replace with "dlopen"

This commit replaces DlopenMem for dlopen, removing the need for "dl.cpp" file.
This commit is contained in:
ThePedroo
2025-04-05 15:36:39 -03:00
parent 886e2f8396
commit 52885faf8b
6 changed files with 52 additions and 114 deletions
+3 -2
View File
@@ -70,10 +70,11 @@ enum mount_namespace_state {
namespace zygiskd {
struct ModuleInfo {
std::string path;
/* TODO: Perhaps we can also remove this and just send paths? */
std::string name;
UniqueFd memfd;
inline explicit ModuleInfo(std::string name, int memfd) : name(name), memfd(memfd) {}
inline explicit ModuleInfo(std::string path, std::string name) : path(path), name(name) {}
};
enum class SocketAction {
-7
View File
@@ -1,7 +0,0 @@
#pragma once
#include <dlfcn.h>
void *DlopenExt(const char *path, int flags);
void *DlopenMem(int memfd, int flags);