diff options
Diffstat (limited to 'src/ns_plugin.h')
-rw-r--r-- | src/ns_plugin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ns_plugin.h b/src/ns_plugin.h index f1567a4..73c805e 100644 --- a/src/ns_plugin.h +++ b/src/ns_plugin.h @@ -1,7 +1,10 @@ #ifndef NS_PLUGIN_H #define NS_PLUGIN_H +#define WIN32_LEAN_AND_MEAN + // Needed to bootstrap plugin abi +#include <windows.h> #include <windef.h> #include <mutex> #include <optional> @@ -21,5 +24,8 @@ typedef void (*ConCommandConstructorType)(ConCommand* newCommand, const char* name, FnCommandCallback_t callback, const char* helpString, int flags, void* parent); typedef void (*ConVarMallocType)(void* pConVarMaloc, int a2, int a3); typedef void (*ConVarRegisterType)(ConVar* pConVar, const char* pszName, const char* pszDefaultValue, int nFlags, const char* pszHelpString, bool bMin, float fMin, bool bMax, float fMax, void* pCallback); +extern "C" { + typedef void* (*extern_CreateObjectFunc)(ObjectType type); +} #endif |