switch_set_state_c

	status.i4.v = switch_set_state_c(switch_id.i4.v, switch_state.i4.v,
					 allow_callbacks.i4.v)

	This routine will set the current state of the requested switch.
	This can only be used for latching and status switches and radio
	switches.  This is the only way to change the state of a status
	switch.

	switch_id	ID of desired switch
			(returned by prior call to switch_create_c or
			 switch_create_radio_c)
	switch_state	desired state
			(SWITCH_LATCH -> SWITCH_ON or SWITCH_OFF,
			 SWITCH_STATUS -> SWITCH_ON or SWITCH_OFF,
			 SWITCH_RADIO -> number of active switch (starts at 1))
	allow_callbacks	determine whether or not to allow callback functions
			to be called (ignored for status switches)
			(TRUE -> allow callback functions to execute,
			 FALSE -> inhibit callback functions)

	This function returns status values as follows:

	CBS_NO_SUCH		switch does not exist
	CBS_INVTYP		requested switch is a momentary switch
	CBS_NOTENB		switch is not enabled
	otherwise		returns the previous value of the switch

	This function requires the following include files:

	cnsparam_h, cbslib_h, acnet_errors_h

	Related functions:

	switch_create_c, switch_create_radio_c, switch_read_c, switch_pressed,
	switch_enable_c, switch_disable_c, switch_text_to_id_c, wn_switch_read_c

	C/C++ usage:

	int	status;
	int	switch_id;
	int	switch_state = SWITCH_ON;
	int	allow_callbacks = TRUE;

	status = switch_set_state_c(switch_id,switch_state,allow_callbacks);