prg_graph_state_ext_handler_register()

Abstract

Registers a set of extended client state handlers for a given namespace.

Syntax

prg_graph_state_ext_handler_register (namespace_name, state_name, destroy_proc, copy_proc)
Argument Type Description
namespace_name const char * The name of the namespace where you are registering the client state handlers
state_name const char * User-defined information to be passed to the handlers
destroy_proc PrgT_Graph_Ext_Destroy_Proc The destroy procedure for the client state
copy_proc PrgT_Graph_Ext_Copy_Proc The copy procedure for the client state

Return Type

PrgT_Graph_State_ID

The ID of the client state in relation to the namespace where it was registered; PRGC_GRAPH_INVALID_ID if there was a problem with the registration

prg_graph.h

Details

The namespace is a container of the handler functions for the client state. The IDs that are assigned to the client state are unique within the namespace, but not across all namespaces.

The prototypes for the client state handlers are given in PrgT_Graph_Ext_Destroy_Proc and PrgT_Graph_Ext_Copy_Proc.

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