void tsmSetParam ( TsmConnectionParams params, TsmParamCode param_code, ... )

Set a connection param field

Documentation

Set a connection param field.

The connection params structure is an extensible means to provide optional hints to tsmConnect. These are used to specify a continuum from the specific dataset you want to open to general properties about a dataset that you are looking for.

This function uses varargs for the actual parameter value so that you can pass in values of any time. This does mean however that you should be careful to supply a value of the correct type for the parameter code that you specify, e.g. tsmSetParam( p, TSM_PARAM_SETID, 69 ) because TSM_PARAM_SETID is expecting an int.

You must call tsmInitParams before calling this function.

Currently you can set the following optional hints. The type of the third parameter specifying the value is given in square parentheses.

Returns:
TRUE if all went just peachy, FALSE if it went pear shaped
Parameters:
params - a TsmConnectionParams structure to update
param_code - one of TSM_PARAM_SETID, TSM_PARAM_SERVERS, TSM_PARAM_FORMAT, etc.
param_value - the value to set for the specified field, e.g. a set id, a new server, or an image format. The type of this value is dependent upon param_code.
Author:
Martin Reddy
Version:
6 February 1998
See Also:
tsmConnect, tsmInitParam, tsmFreeParams, tsmPrintParams


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page