Distributed Name Service (DNS) Management Programming Manual
DNS Programming Example, C
H–22 46958 Tandem Computers Incorporated
ABORTTRANSACTION();
return dns_return(dns_err, retcode);
}
/*-----------------------------------*/
/* Try to commit the TMF transaction */
/*-----------------------------------*/
if (status = ENDTRANSACTION())
return dns_return(tmf_err, status);
/*------------------------------*/
/* Return indication of success */
/*------------------------------*/
return dns_return(no_err, 0);
}
#pragma page "DNS_DELETE_DNSNAME"
/*==================================================================*/
/* Delete an alias, composite, DNS domain or group */
/*==================================================================*/
error_return_def dns_delete_dnsname(int file_desc /* File number */
,int dnstype /* Type of name */
,char *dnsname) /* Name */
{
int status;
int retcode;
zdns_ddl_msg_buffer_def req_buf;
zdns_ddl_msg_buffer_def resp_buf;
error_return_def result;
zdns_ddl_del_dnsobj_def param;
/*-------------------------------------*/
/* Initialize delete <dnstype> request */
/*-------------------------------------*/
if (status = SSINIT((short *) &req_buf
, ZDNS_VAL_BUFLEN
, (short *) &dns_ssid
, ZSPI_VAL_CMDHDR
, ZDNS_CMD_DELETE
, dnstype
, 0
, true))
return dns_return(spi_err, status);
/*--------------------------*/
/* Initialize request token */
/*--------------------------*/
if (status = SSNULL((short *) &zdns_map_del_dnsobj
, (char *) ¶m))
return dns_return(spi_err, status);