-/* Cycript - Remove Execution Server and Disassembler
+/* Cycript - Remote Execution Server and Disassembler
* Copyright (C) 2009 Jay Freeman (saurik)
*/
#include <apr_pools.h>
#include <ffi.h>
-
#include <sig/types.hpp>
+#include <sstream>
bool CYRecvAll_(int socket, uint8_t *data, size_t size);
bool CYSendAll_(int socket, const uint8_t *data, size_t size);
+void CYNumerify(std::ostringstream &str, double value);
+void CYStringify(std::ostringstream &str, const char *data, size_t size);
+
extern "C" void CYHandleClient(apr_pool_t *pool, int socket);
template <typename Type_>
}
JSGlobalContextRef CYGetJSContext();
+apr_pool_t *CYGetGlobalPool();
JSObjectRef CYGetGlobalObject(JSContextRef context);
const char *CYExecute(apr_pool_t *pool, const char *code);