]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/third_party/prometheus-cpp/3rdparty/civetweb/docs/api/mg_option.md
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / third_party / prometheus-cpp / 3rdparty / civetweb / docs / api / mg_option.md
1 # Civetweb API Reference
2
3 ### `struct mg_option;`
4
5 ### Fields
6
7 | Field | Type | Description |
8 | :--- | :--- | :--- |
9 |**`name`**|`const char *`|Name of the option|
10 |**`type`**|`int`|Type of the option|
11 |**`default_value`**|`const char *`|Value of the option|
12
13 ### Description
14
15 A list of valid configuration options of the Civetweb instance can be retrieved with a call to [`mg_get_valid_options()`](mg_get_valid_options.md). This function fills a list of `struct mg_option` structures where the content of each structure represents a configuration option. Each structure contains three fields. One field contains the name of the option, the second contains the value of the option and the third is an identifier used to define the type of the option and how the value contents should be interpreted.
16
17 The field `type` can be one of the following values:
18
19 |Value|Description|
20 | :--- | :--- |
21 |**`CONFIG_TYPE_UNKNOWN`**|The type of the option value is unknown|
22 |**`CONFIG_TYPE_NUMBER`**|The option value is an integer|
23 |**`CONFIG_TYPE_STRING`**|The option value is a number|
24 |**`CONFIG_TYPE_FILE`**|The option value is a file name|
25 |**`CONFIG_TYPE_DIRECTORY`**|The option value is a directory name|
26 |**`CONFIG_TYPE_BOOLEAN`**|The option value is a boolean|
27 |**`CONFIG_TYPE_EXT_PATTERN`**|The option value is a list of regular expression patterns|
28
29 ### See Also
30
31 * [`mg_get_valid_options();`](mg_get_valid_options.md)