-JSValueRef CYCallFunction(apr_pool_t *pool, JSContextRef context, size_t setups, void *setup[], size_t count, const JSValueRef *arguments, JSValueRef *exception, sig::Signature *signature, ffi_cif *cif, void (*function)());
-JSValueRef CYSendMessage(apr_pool_t *pool, JSContextRef context, id self, SEL _cmd, size_t count, const JSValueRef arguments[], JSValueRef *exception);
+template <typename Type_>
+bool CYSendAll(int socket, const Type_ *data, size_t size) {
+ return CYSendAll_(socket, reinterpret_cast<const uint8_t *>(data), size);
+}
+
+JSGlobalContextRef CYGetJSContext();
+apr_pool_t *CYGetGlobalPool();
+JSObjectRef CYGetGlobalObject(JSContextRef context);
+const char *CYExecute(apr_pool_t *pool, const char *code);
+
+void CYSetArgs(int argc, const char *argv[]);