StikDebug/StikJIT/idevice/jit.h
2026-03-27 18:44:13 -04:00

23 lines
868 B
C

//
// jit.h
// StikJIT
//
// Created by Stephen on 3/27/25.
//
// jit.h
#ifndef JIT_H
#define JIT_H
#include "idevice.h"
#include <dispatch/dispatch.h>
typedef void (^LogFuncC)(const char* message, ...);
typedef void (^DebugAppCallback)(int pid,
struct DebugProxyHandle* debug_proxy,
struct RemoteServerHandle* remote_server,
dispatch_semaphore_t semaphore);
int debug_app(AdapterHandle* adapter, RsdHandshakeHandle* handshake, const char *bundle_id, LogFuncC logger, DebugAppCallback callback);
int debug_app_pid(AdapterHandle* adapter, RsdHandshakeHandle* handshake, int pid, LogFuncC logger, DebugAppCallback callback);
int launch_app_via_proxy(AdapterHandle* adapter, RsdHandshakeHandle* handshake, const char *bundle_id, LogFuncC logger);
#endif /* JIT_H */