mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-31 09:57:14 +01:00
27 lines
904 B
C++
27 lines
904 B
C++
// ------------------------------------------------------------------------------------------------
|
|
#include "Library/Web.hpp"
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
namespace SqMod {
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
struct CvInit {
|
|
#if defined(NO_SSL)
|
|
CvInit() { mg_init_library(MG_FEATURES_FILES|MG_FEATURES_IPV6|MG_FEATURES_WEBSOCKET|MG_FEATURES_CACHE|MG_FEATURES_HTTP2); }
|
|
#else
|
|
CvInit() { mg_init_library(MG_FEATURES_FILES|MG_FEATURES_SSL|MG_FEATURES_IPV6|MG_FEATURES_WEBSOCKET|MG_FEATURES_CACHE|MG_FEATURES_HTTP2); }
|
|
#endif
|
|
} g_CvInit;
|
|
|
|
// ================================================================================================
|
|
void Register_Web(HSQUIRRELVM vm)
|
|
{
|
|
Table wbns(vm);
|
|
|
|
|
|
|
|
RootTable(vm).Bind(_SC("SqWeb"), wbns);
|
|
}
|
|
|
|
} // Namespace:: SqMod
|