]> git.saurik.com Git - cycript.git/blobdiff - cycript.hpp
Forgot to include license header in libcycript.cy.
[cycript.git] / cycript.hpp
index 6494cadfb26cc60c5bd45f2da933bde90ee9d143..30010f4e447503fae14882b61e9c477827d5690f 100644 (file)
 #ifndef CYCRIPT_HPP
 #define CYCRIPT_HPP
 
-#include <sig/types.hpp>
 #include <sstream>
 
+#include <sig/types.hpp>
+
 #include "Pooling.hpp"
+#include "String.hpp"
 
 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);
+void CYStringify(std::ostringstream &str, const char *data, size_t size, bool c = false);
 
 double CYCastDouble(const char *value, size_t size);
 double CYCastDouble(const char *value);
 
-extern "C" void CYHandleClient(int socket);
+void CYHandleClient(int socket);
 
 template <typename Type_>
 bool CYRecvAll(int socket, Type_ *data, size_t size) {
@@ -50,4 +52,6 @@ bool CYSendAll(int socket, const Type_ *data, size_t size) {
 
 CYPool &CYGetGlobalPool();
 
+char **CYComplete(const char *word, const std::string &line, CYUTF8String (*run)(CYPool &pool, const std::string &));
+
 #endif/*CYCRIPT_HPP*/