Vtk_ExtensionNew
Toolkit Reference

prevnext

Vtk_ExtensionNew

#include <vtk_cert.h>
#include <vtk_defs.h>
#include <vtk_errs.h>
Vtk_Extension* Vtk_ExtensionNew(
const Vtk_Ctxt *ctxt /* input */
);

Description

This extension function allocates memory for the Vtk_Extension structure and creates an empty extension structure.

Parameters

ctxt Pointer to the Toolkit context created using the Vtk_CtxtNew function and for which memory has been allocated.

Return Value

Vtk_Extension The function has completed successfully. The function returns the Vtk_Extension structure that has been newly created and initialized.
NULL The function has failed.

Notes

This function must be called before initializing the extension data with application information. Once the extension structure is created, the application can populate the extension with data using the Vtk_ExtensionInit. The application must call Vtk_ExtensionDelete to release the memory allocated by this function when it no longer needs the structure.



See Also

Vtk_Extension

Vtk_ErrorToString_r

Vtk_ExtensionInit

prevnext


ValiCert, Inc.
http://www.valicert.com
Voice: +1.650.567.5469
Fax: (+1.650.254.2148
support@valicert.com