Required Parameter Group: | |||
1 | cfg | Input | Binary(4) |
2 | fdata | Input | Char(*) |
3 | fdata_size | Input | Binary(4) |
4 | format | Input | Char(8) |
5 | object | Output | Binary(4) |
6 | val | Output | Char(*) |
7 | val_size | Input | Binary(4) |
8 | val_actlen | Output | Binary(4) |
9 | errcode | I/O | Char(*) |
Threadsafe: Yes |
Use the QzuiFindConfigObject API to search HTTP Server (powered by Apache) configuration file for the object (and possibly value) specified and returns a handle to it. If ″start″ is not specified, the configuration file scope is used. If a value is specified, the value is tokenized and compared with the tokens of the matching keywords. For example, if the keyword is ″BrowserMatch″ and the value is ″Mozilla/2″ the search would find ″BrowserMatch Mozilla/2 nokeepalive″. Also, the ″val″ field would contain ″Mozilla/2 nokeepalive″. You need only pass the object type and keyword. For example, to find a ″Port″ directive, set the object type to 1, the keyword to ″Port″ and fdata_size to 8. If the value field is not needed, set ″val_size″ to 0.
Handle to the configuration file.
Find data in format CFGF0110.
Size of Find data format buffer.
Name of format (CFGF0110).
Handle to the object found (-1 indicates not found).
Contains the whole value of the configuration object found.
Size of value buffer.
Actual size of value.
Error information structure.
This data format is used by QzuiFindConfigObject powered by Apache API.
Offset | Type | Field |
---|---|---|
0 | Binary(4) | Object type (0=directive, 1=scope) |
4 | Char(40) | Keyword object to search for (required) |
44 | Binary(4) | Case sensitive (0=insensitive, 1=sensitive) |
48 | Binary(4) | Where to search (0=entire configuration, 1=with scope specified in "Start", 2=start search at object specified in "Start", 3=start search at scope specified in object start) |
52 | Binary(4) | Start - the search start handle (0 if no start is to be used) |
56 | Binary(4) | Value when searching (0=no, 1=yes) |
60 | Char(100) | Value of object to search for |