Files
ReZygisk/loader/src/ptracer/monitor.h
ThePedroo b94ea0c5f5 improve: port ptracer to C
This commit ports the C++ to C99 from zygisk-ptracer code, allowing a ~3x size reduce in its binary.
2025-04-16 02:02:26 -03:00

27 lines
470 B
C

#ifndef MONITOR_H
#define MONITOR_H
#include <stdbool.h>
void init_monitor();
bool trace_zygote(int pid);
enum rezygiskd_command {
START = 1,
STOP = 2,
EXIT = 3,
/* sent from daemon */
ZYGOTE64_INJECTED = 4,
ZYGOTE32_INJECTED = 5,
DAEMON64_SET_INFO = 6,
DAEMON32_SET_INFO = 7,
DAEMON64_SET_ERROR_INFO = 8,
DAEMON32_SET_ERROR_INFO = 9,
SYSTEM_SERVER_STARTED = 10
};
int send_control_command(enum rezygiskd_command cmd);
#endif /* MONITOR_H */