SRV_GETCONFIG

Accesses an Open Data Services server application's configuration structure.

Syntax

SRV_CONFIG * SRV_GETCONFIG ( SRV_SERVER * server );

where

server
Is a pointer to the SRV_SERVER structure associated with the desired SRV_CONFIG element.

Returns

A pointer to the Open Data Services server application's SRV_CONFIG structure. If insufficient memory or an invalid server is specified, returns NULL.

Remarks

The SRV_CONFIG structure configures the Open Data Services server application on initialization. A copy of that structure is found in the SRV_SERVER structure. The SRV_GETCONFIG macro returns a pointer to this SRV_SERVER copy of the SRV_CONFIG structure.

The pointer to SRV_CONFIG can be passed to srv_config to change configuration parameters.

See Also

This entry For information about
srv_config Setting Open Data Services configuration parameters
SRV_GETSERVER Returning a pointer to the server being used by a client