Ovis_Entity_Destroy_Proc_Set()

Abstract

Attaches a destroy procedure to an Ovis entity.

Syntax

Ovis_Entity_Destroy_Proc_Set (ent_ptr, destroy_proc)
Argument Type Description
ent_ptr OvisT_Entity * Entity on which to attach the destroy procedure.
destroy_proc OvisT_Entity_State_Destroy_Proc Destroy procedure to attach.

Return Type

OvisT_Entity_State_Destroy_Proc

Previous destroy_proc, or PRGC_NIL if none.

ovis_entity.h

Details

This function attaches a user-defined destroy_proc to an Ovis entity. The prototype for destroy_proc is given in OvisT_Entity_State_Destroy_Proc.

Example

static void new_destroy_proc (OvisT_Entity * entity_ptr, void * user_state_ptr)
   {
   …
   }

OvisT_Entity                        * ent;
OvisT_Entity_State_Destroy_Proc     old_proc;

/* … entity created at some point */

old_proc = Ovis_Entity_Destroy_Proc_Set (entity, new_destroy_proc);

Errors

  • Entity is NIL.

Reference

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com