diff options
Diffstat (limited to 'src/wrap.h')
| -rw-r--r-- | src/wrap.h | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -27,11 +27,10 @@ #include "incl.h" -#ifdef OPENSSL + struct socketcontainer { int i_sock; - void *p_ssl_context; }; #define _socket socketcontainer #else @@ -52,24 +51,24 @@ struct socketcontainer #include "modl.h" //*>> +#ifdef NCURSES +#include "ncur/ncur.h" +#else #ifdef CLI #include "cli/cli.h" #endif +#endif #include "chat/sman.h" -#ifndef OPENSSL #include "sock/sock.h" -#else -#include "sock/sslsock.h" -#endif - #include "monitor/stats.h" #include "time/timr.h" #include "thrd/pool.h" using namespace std; + class dynamic_wrap { public: @@ -91,10 +90,15 @@ public: logd* LOGD; #endif +#ifdef NCURSES + + ncur* NCUR; +#endif sock* SOCK; stats* STAT; timr* TIMR; + pool* POOL; }; class wrap @@ -140,6 +144,7 @@ public: static sock* SOCK; static stats* STAT; static timr* TIMR; + static pool* POOL; static dynamic_wrap* WRAP; }; |
