myMPD
Internal API documentation
Loading...
Searching...
No Matches
webserver.h File Reference

Webserver implementation. More...

#include "src/lib/config/config_def.h"
#include "src/webserver/mg_user_data.h"
#include <stdbool.h>
Include dependency graph for webserver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void * webserver_loop (void *arg_mgr)
struct mg_mgr * webserver_init_mgr (struct t_config *config, struct t_mg_user_data *mg_user_data)
void webserver_free (struct mg_mgr *mgr)

Detailed Description

Webserver implementation.

Function Documentation

◆ webserver_free()

void webserver_free ( struct mg_mgr * mgr)

Frees the mongoose mgr

Parameters
mgrmongoose mgr to free

◆ webserver_init_mgr()

struct mg_mgr * webserver_init_mgr ( struct t_config * config,
struct t_mg_user_data * mg_user_data )

Public functions Initializes the webserver

Parameters
configpointer to myMPD config
mg_user_dataalready allocated t_mg_user_data to populate
Returns
struct mg_mgr* or NULL on error

◆ webserver_loop()

void * webserver_loop ( void * arg_mgr)

Main function for the webserver thread

Parameters
arg_mgrvoid pointer to mongoose mgr
Returns
NULL