summaryrefslogtreecommitdiff
path: root/gcsdk/gcwebapi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gcsdk/gcwebapi.cpp')
-rw-r--r--gcsdk/gcwebapi.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/gcsdk/gcwebapi.cpp b/gcsdk/gcwebapi.cpp
new file mode 100644
index 0000000..af7783d
--- /dev/null
+++ b/gcsdk/gcwebapi.cpp
@@ -0,0 +1,31 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: CWAPI code for GC access to the Web API server
+//
+//=============================================================================
+
+#include "stdafx.h"
+#include "gcwebapi.h"
+#include "enumutils.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+CUtlVector< GCWebAPIInterfaceMapCreationFunc_t > & CGCWebAPIInterfaceMapRegistrar::VecInstance()
+{
+ static CUtlVector< GCWebAPIInterfaceMapCreationFunc_t > sm_vecInterfaceFuncs;
+ return sm_vecInterfaceFuncs;
+}
+
+
+ENUMSTRINGS_START( EWebApiParamType )
+{ k_EWebApiParamTypeInvalid, "Invalid" },
+{ k_EWebApiParamTypeInt32, "int32" },
+{ k_EWebApiParamTypeUInt32, "uint32" },
+{ k_EWebApiParamTypeInt64, "int64" },
+{ k_EWebApiParamTypeUInt64, "uint64" },
+{ k_EWebApiParamTypeFloat, "float" },
+{ k_EWebApiParamTypeString, "string" },
+{ k_EWebApiParamTypeBool, "bool" },
+{ k_EWebApiParamTypeRawBinary, "rawbinary" }
+ENUMSTRINGS_REVERSE( EWebApiParamType, k_EWebApiParamTypeInvalid )