From 9c59fb3d42a1560a7a195b9edf3bb188314762fd Mon Sep 17 00:00:00 2001 From: D4edalus Date: Mon, 5 Sep 2016 20:31:06 +0200 Subject: [PATCH] HTTP_SendReceiveData plugin export --- plugins/function_declarations.h | 1 + src/httpftp.c | 2 +- src/httpftp.h | 1 + src/plugin_exports.c | 5 +++++ src/version_build.h | 2 +- 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/plugins/function_declarations.h b/plugins/function_declarations.h index 3bd6a16f..37fc3fb8 100644 --- a/plugins/function_declarations.h +++ b/plugins/function_declarations.h @@ -305,6 +305,7 @@ __cdecl const char* Plugin_WriteBanTimelimit(int timeleftsecs, char *outbuffer, int outbufferlen); //Function to turn the remaining ban time into a text __cdecl ftRequest_t* Plugin_HTTP_Request(const char* url, const char* method, byte* requestpayload, int payloadlen, const char* additionalheaderlines); + __cdecl int Plugin_HTTP_SendReceiveData(ftRequest_t* request); __cdecl ftRequest_t* Plugin_HTTP_GET(const char* url); /* blocking */ __cdecl void Plugin_HTTP_FreeObj(ftRequest_t* request); diff --git a/src/httpftp.c b/src/httpftp.c index 92a4c7bf..d7d5ac85 100644 --- a/src/httpftp.c +++ b/src/httpftp.c @@ -714,7 +714,7 @@ static int HTTP_ProcessChunkedEncoding(ftRequest_t* request, qboolean connection } -static int HTTP_SendReceiveData(ftRequest_t* request) +int HTTP_SendReceiveData(ftRequest_t* request) { char* line; int status, i, flags; diff --git a/src/httpftp.h b/src/httpftp.h index fc5c0e2a..f89027ad 100644 --- a/src/httpftp.h +++ b/src/httpftp.h @@ -75,6 +75,7 @@ typedef struct char value[MAX_STRING_CHARS]; }httpPostVals_t; +int HTTP_SendReceiveData(ftRequest_t* request); void FileDownloadFreeRequest(ftRequest_t* request); ftRequest_t* FileDownloadRequest( const char* url); int FileDownloadSendReceive( ftRequest_t* request ); diff --git a/src/plugin_exports.c b/src/plugin_exports.c index 2bf9d4c4..41f58520 100644 --- a/src/plugin_exports.c +++ b/src/plugin_exports.c @@ -659,6 +659,11 @@ P_P_F int Plugin_FS_SV_WriteFile( const char *qpath, const void *buffer, int siz return FS_SV_HomeWriteFile( qpath, buffer, size); } +P_P_F int Plugin_HTTP_SendReceiveData(ftRequest_t* request) +{ + return HTTP_SendReceiveData(request); +} + /* blocking */ P_P_F ftRequest_t* Plugin_HTTP_Request(const char* url, const char* method, byte* requestpayload, int payloadlen, const char* additionalheaderlines) diff --git a/src/version_build.h b/src/version_build.h index 87ed8fca..ca9e26de 100644 --- a/src/version_build.h +++ b/src/version_build.h @@ -1 +1 @@ -#define BUILD_NUMBER 1400 +#define BUILD_NUMBER 1454