X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/0df6a201bcded42c2e96ed5d2826fba49b162491..c22e009d49bb891a560f8a6219fe3499859eff4b:/Handler.mm diff --git a/Handler.mm b/Handler.mm index a064c78..e9a8903 100644 --- a/Handler.mm +++ b/Handler.mm @@ -57,7 +57,7 @@ struct CYExecute_ { CYExecute_ *execute(reinterpret_cast([value pointerValue])); const char *data(execute->data_); execute->data_ = NULL; - execute->data_ = CYExecute(execute->pool_, CYUTF8String(data)); + execute->data_ = CYExecute(CYGetJSContext(), execute->pool_, CYUTF8String(data)); } @end @@ -140,7 +140,7 @@ extern "C" void CYHandleClient(int socket) { _assert(pthread_create(&client->thread_, NULL, &OnClient, client) == 0); } -extern "C" void CYHandleServer(pid_t pid) { +extern "C" void CYHandleServer(pid_t pid, char *data, size_t size) { CYInitializeDynamic(); int socket(_syscall(::socket(PF_UNIX, SOCK_STREAM, 0))); try {