From 32cd7192236e718e0f843142051985dabd5a2811 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Tue, 29 Sep 2020 19:19:05 +0000 Subject: [PATCH] client: Add cl_parse.h and move cl_parse prototypes to it git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12970 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_parse.h | 17 +++++++++++++++++ client.h | 12 +----------- darkplaces-sdl2-vs2017.vcxproj | 1 + darkplaces-sdl2-vs2019.vcxproj | 1 + 4 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 cl_parse.h diff --git a/cl_parse.h b/cl_parse.h new file mode 100644 index 00000000..f9ae8b64 --- /dev/null +++ b/cl_parse.h @@ -0,0 +1,17 @@ +#ifndef CL_PARSE_H +#define CL_PARSE_H + +#include "qtypes.h" +#include "cvar.h" + +extern cvar_t qport; + +void CL_Parse_Init(void); +void CL_Parse_Shutdown(void); +void CL_ParseServerMessage(void); +void CL_Parse_DumpPacket(void); +void CL_Parse_ErrorCleanUp(void); +void QW_CL_StartUpload(unsigned char *data, int size); +void CL_KeepaliveMessage(qbool readmessages); // call this during loading of large content + +#endif diff --git a/client.h b/client.h index 9f5d4f2d..769f57e9 100644 --- a/client.h +++ b/client.h @@ -26,6 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "snd_main.h" #include "view.h" #include "cap.h" +#include "cl_parse.h" // NOTE: r_stat_name[] must match this indexing typedef enum r_stat_e @@ -1572,17 +1573,6 @@ void CL_TimeDemo_f(cmd_state_t *cmd); void CL_Demo_Init(void); -// -// cl_parse.c -// -void CL_Parse_Init(void); -void CL_Parse_Shutdown(void); -void CL_ParseServerMessage(void); -void CL_Parse_DumpPacket(void); -void CL_Parse_ErrorCleanUp(void); -void QW_CL_StartUpload(unsigned char *data, int size); -extern cvar_t qport; -void CL_KeepaliveMessage(qbool readmessages); // call this during loading of large content // // cl_part diff --git a/darkplaces-sdl2-vs2017.vcxproj b/darkplaces-sdl2-vs2017.vcxproj index 9e639574..87cd0335 100644 --- a/darkplaces-sdl2-vs2017.vcxproj +++ b/darkplaces-sdl2-vs2017.vcxproj @@ -321,6 +321,7 @@ + diff --git a/darkplaces-sdl2-vs2019.vcxproj b/darkplaces-sdl2-vs2019.vcxproj index 0c89882b..5265e7c6 100644 --- a/darkplaces-sdl2-vs2019.vcxproj +++ b/darkplaces-sdl2-vs2019.vcxproj @@ -322,6 +322,7 @@ + -- 2.39.2