GNU libmicrohttpd 1.0.0
Loading...
Searching...
No Matches
mhd_panic.c File Reference
#include "mhd_panic.h"
#include "platform.h"
#include "microhttpd.h"
Include dependency graph for mhd_panic.c:

Go to the source code of this file.

Functions

static _MHD_NORETURN void mhd_panic_std (void *cls, const char *file, unsigned int line, const char *reason)
 
_MHD_EXTERN void MHD_set_panic_func (MHD_PanicCallback cb, void *cls)
 

Variables

MHD_PanicCallback mhd_panic = (MHD_PanicCallback) NULL
 
voidmhd_panic_cls = NULL
 

Function Documentation

◆ mhd_panic_std()

static _MHD_NORETURN void mhd_panic_std ( void * cls,
const char * file,
unsigned int line,
const char * reason )
static

Default implementation of the panic function, prints an error message and aborts.

Parameters
clsunused
filename of the file with the problem
lineline number with the problem
reasonerror message with details

Definition at line 54 of file mhd_panic.c.

References _, and MHD_HTTP_OK.

Variable Documentation

◆ mhd_panic

Handler for fatal errors.

Definition at line 36 of file mhd_panic.c.

Referenced by build_header_response(), MHD_init(), and process_request_body().

◆ mhd_panic_cls

void* mhd_panic_cls = NULL

Closure argument for mhd_panic.

Definition at line 41 of file mhd_panic.c.

Referenced by build_header_response(), and process_request_body().