OSI/TS Management Programming Manual
Sample Programs
C–32 056786 Tandem Computers Incorporated
 (int *)&zems_val_ssid,
 ZSPI_VAL_CMDHDR, ZEMS_CMD_CONTROL );
 if (spi_err != ZSPI_ERR_OK)
 DEBUG();
 /* Place connect-source-collector token in buffer.*/
 spi_err = SSPUTTKN( (int *)spi_buf,
 ZEMS_TKN_CONNECT_SRC_COLL,
 coll_name );
 if (spi_err != ZSPI_ERR_OK)
 DEBUG();
 /* Send command to distributor. */
 spi_err = send_spi_cmd();
 return spi_err;
}
#pragma PAGE
/************************************************************
 * spi_cmd_load_filter *
 ************************************************************
 *
 * Builds an SPI command that loads a filter into the
 * distributor.
 */
int spi_cmd_load_filter(void)
{
 /* Initialize spi_buf for distributor CONTROL command. */
 spi_err = SSINIT( (int *)spi_buf, ZEMS_VAL_BUFLEN,
 (int *)&zems_val_ssid,
 ZSPI_VAL_CMDHDR, ZEMS_CMD_CONTROL );
 if (spi_err != ZSPI_ERR_OK)
 DEBUG();
 /* Place load-filter token in buffer. */
 spi_err = SSPUTTKN( (int *)spi_buf, ZEMS_TKN_FILTERFILE,
 filt_name );
 if (spi_err != ZSPI_ERR_OK)
 DEBUG();
 /* Send command to distributor. */
 spi_err = send_spi_cmd();
 return spi_err;
}
#pragma PAGE
/************************************************************
 * displ_event *
 ************************************************************
 *
 * This function displays an event message on the home
 * terminal.
 * Pass: the event buffer pointer to convert to a message
 */
void displ_event(EMSBUFDEF *event_buf)
{










