X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c15969fd0a6280c60d2f35876b5343004fed2b11..9674674739f8ab3c2b81879f36fdb7fcf294cb5e:/cycript.hpp diff --git a/cycript.hpp b/cycript.hpp index e9284e7..d0fcaf6 100644 --- a/cycript.hpp +++ b/cycript.hpp @@ -22,13 +22,10 @@ #ifndef CYCRIPT_HPP #define CYCRIPT_HPP -#include #include #include -#include "String.hpp" - -void CYInitializeStatic(); +#include "Pooling.hpp" bool CYRecvAll_(int socket, uint8_t *data, size_t size); bool CYSendAll_(int socket, const uint8_t *data, size_t size); @@ -39,7 +36,7 @@ void CYStringify(std::ostringstream &str, const char *data, size_t size); double CYCastDouble(const char *value, size_t size); double CYCastDouble(const char *value); -extern "C" void CYHandleClient(apr_pool_t *pool, int socket); +extern "C" void CYHandleClient(int socket); template bool CYRecvAll(int socket, Type_ *data, size_t size) { @@ -51,6 +48,6 @@ bool CYSendAll(int socket, const Type_ *data, size_t size) { return CYSendAll_(socket, reinterpret_cast(data), size); } -apr_pool_t *CYGetGlobalPool(); +CYPool &CYGetGlobalPool(); #endif/*CYCRIPT_HPP*/