GNU libmicrohttpd  0.9.72
action_process_upload.c File Reference

implementation of MHD_action_process_upload() More...

#include "internal.h"
Include dependency graph for action_process_upload.c:

Go to the source code of this file.

Functions

static enum MHD_StatusCode upload_action (void *cls, struct MHD_Request *request)
 
const struct MHD_ActionMHD_action_process_upload (MHD_UploadCallback uc, void *uc_cls)
 

Detailed Description

implementation of MHD_action_process_upload()

Author
Christian Grothoff

Definition in file action_process_upload.c.

Function Documentation

◆ MHD_action_process_upload()

const struct MHD_Action* MHD_action_process_upload ( MHD_UploadCallback  uc,
void *  uc_cls 
)

Create an action that handles an upload.

Parameters
ucfunction to call with uploaded data
uc_clsclosure for uc
Returns
NULL on error (out of memory)

Definition at line 77 of file action_process_upload.c.

References NULL, and upload_action().

Here is the call graph for this function:

◆ upload_action()

static enum MHD_StatusCode upload_action ( void *  cls,
struct MHD_Request request 
)
static

The application wants to process uploaded data for the given request. Do it!

Parameters
clsthe struct UploadAction with the function we are to call for upload data
requestthe request for which we are to process upload data
Returns
#MHD_SC_OK on success

Definition at line 1 of file action_process_upload.c.

References MHD_Action::action.

Referenced by MHD_action_process_upload().

Here is the caller graph for this function: