Ovis_Entity_From_Objhandle_Create()

Abstract

Creates the Ovis entity using the ETS object handle of a site.

Syntax

Ovis_Entity_From_Objhandle_Create (ets_obj_handle, callback, state_ptr)
Argument Type Description
ets_obj_handle EtsT_Obj_Handle ETS object handle of a site
callback OvisT_Entity_State_Destroy_Proc Callback function that will destroy the entity’s state when the entity is destroyed
state_ptr void * User-defined state associated with the entity

Return Type

OvisT_Entity *

Returns the entity, or OVISC_NIL if the function failed to return an entity.

ovis_entity.h

Details

This function creates an Ovis entity based on the site referenced by the ETS object handle. If an entity is already associated with the specified site, the function returns the existing entity (the existing state and the destroy process are not updated by the provided arguments). This function can only be used in the context of an ETS function call.

Example

OvisT_Entity       * ent_ptr;
EtsT_Obj_Handle      handle;

/* handle set to some appropriate node or subnet */

ent_ptr = Ovis_Entity_From_Objhandle_Create (handle, OPC_NIL, OPC_NIL);

Errors

  • None

Reference

  • None

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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