Skip to content

Commit

Permalink
HTTP_SendReceiveData plugin export
Browse files Browse the repository at this point in the history
  • Loading branch information
D4edalus committed Sep 5, 2016
1 parent 2ba7d6c commit 9c59fb3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions plugins/function_declarations.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/httpftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/httpftp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
5 changes: 5 additions & 0 deletions src/plugin_exports.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/version_build.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 1400
#define BUILD_NUMBER 1454

0 comments on commit 9c59fb3

Please sign in to comment.