#ifndef CYCRIPT_HPP
#define CYCRIPT_HPP
-#include <apr_pools.h>
#include <sig/types.hpp>
#include <sstream>
+#include "Pooling.hpp"
#include "String.hpp"
-void CYInitializeStatic();
-
bool CYRecvAll_(int socket, uint8_t *data, size_t size);
bool CYSendAll_(int socket, const uint8_t *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 <typename Type_>
bool CYRecvAll(int socket, Type_ *data, size_t size) {
return CYSendAll_(socket, reinterpret_cast<const uint8_t *>(data), size);
}
-apr_pool_t *CYGetGlobalPool();
+CYPool &CYGetGlobalPool();
+
+CYUTF8String CYPoolCode(CYPool &pool, CYUTF8String code);
#endif/*CYCRIPT_HPP*/