oms_aa_dest_status_set()
摘要
将一个已存在的地址指定为有效或无效的目的节点。
语法
oms_aa_dest_status_set (oms_aa_handle, address, destination_status)
| 参数 | 类型 | 说明 |
|---|---|---|
oms_aa_handle |
OmsT_Aa_Address_Handle |
特定地址类型对应列表的句柄 |
address |
int |
需要设置目的状态的地址 |
destination_status |
OmsT_Aa_Destination_Status |
枚举数据类型 [可以是 OmsC_Aa_Valid_Destination 或 OmsC_AA_Invalid_Destination] |
返回类型
void
无返回值
详细说明
当你希望把某个目的地址指定为有效或无效时,该过程非常有用——例如,如果某个节点在场景中只发起语音呼叫,你可以将该节点的地址指定为无效目的地址。默认情况下,所有目的地址都被视为有效。
示例
来自 sna_sess_cntl 进程模型中 init_too 的 exit execs:
{
/* Get interrupt parameters. */
intrpt_type = op_intrpt_type ();
intrpt_code = op_intrpt_code ();
/* Obtain the host address; note that this is required as */
/* it may have changed during auto-addressing. */
op_ima_obj_attr_get (my_objid, "Subarea Address", &host_address);
oms_aa_dest_status_set (oms_aa_handle, host_address
OmsC_Aa_Valid_Destination);
/* Advertise the host address also. */
oms_pr_attr_set (process_record_handle, "address", OMSC_PR_NUMBER,
(double) host_address, OPC_NIL);
}