Next: General server type functionality, Up: Server types [Contents][Index]
When specifying a server type you also need to define configuration items for it. These items refer to addresses in the example configuration of the server type. These macros can be used to define such items.
Register a simple integer. C-type: int
. The given name
specifies the symbolic name of the integer and item the integer
itself (not its address). The defaultable argument can be either
SVZ_ITEM_DEFAULTABLE
or SVZ_ITEM_NOTDEFAULTABLE
.
Register a boolean value. C-type: int
.
Register an array of integers. C-type: svz_array_t *
.
Register a simple character string. C-type: char *
.
Register a string array. C-type: svz_array_t *
.
Register a hash table associating strings with strings only. C-type:
svz_hash_t *
.
Register a port configuration. C-type: svz_portcfg_t *
.
Indicate the end of the list of configuration items. It is the only mandatory item you need to specify in an example server type configuration.
Expand to a data structure that properly associates the example configuration config with the name description and its configuration items prototypes, for use within a server type definition.
Next: General server type functionality, Up: Server types [Contents][Index]