File: mg_init_data.md

package info (click to toggle)
civetweb 1.16%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,184 kB
  • sloc: ansic: 32,473; cpp: 1,374; sh: 480; javascript: 204; makefile: 120; php: 11; perl: 6; python: 3
file content (24 lines) | stat: -rw-r--r-- 965 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Civetweb API Reference

### `struct mg_init_data;`

### Fields

| Field | Type | Description |
| :--- | :--- | :--- |
|**`callbacks`**|`const struct mg_callbacks *`| A structure with optional callback functions to process requests from the web server |
|**`user_data`**|`void *`| A pointer to optional user data |
|**`configuration_options`**|`const char **`| A list of options used to initialize the web server. The list consists of an NULL terminated list of option-value string pairs. |

### Description

The structure `mg_init_data` is used in [`mg_start2()`](mg_start.md) and [`mg_connect_client2();`](mg_connect_client2.md).
It holds the same parameters supplied to [`mg_start();`](mg_start.md) as individual arguments in one structure.

### See Also

* [`struct mg_callbacks;`](mg_callbacks.md)
* [`mg_start();`](mg_start.md)
* [`mg_start2();`](mg_start2.md)
* [`mg_connect_client2();`](mg_connect_client2.md)
* [`struct mg_error_data;`](mg_error_data.md)