NetApp Manageability SDK OLH - master : Programming Guide : SDK Core APIs : C and C++ Core APIs : Startup and Memory Management APIs for C and C++


Startup and Memory Management APIs for C and C++
The Startup and Memory Management APIs are used to initialize or free the global resources used by the program, and to create or free the memory used by the program elements. This page contains information about the Startup and Memory Management APIs for C and C++, including the description and prototype, and the input, input types, input description, and input return values.
na_startup
Prototype
int na_startup(char* errbuff, int errbuffsize);
Description
Initializes the global resources.
You must call this function before invoking any API.
Return value
1 (TRUE) on success
0 (FALSE) on failure
na_shutdown
Prototype
void na_shutdown(void);
Description
Frees the system resources
Return value
None
na_free
Prototype
void na_free(const void* ptr);
Description
Frees memory that is pointed to by ptr.
You should use this API to free any memory allocated by the na_* APIs, such as na_child_get_string_encrypted().
Return value
None
na_elem_new
Prototype
na_elem_t* na_elem_new(const char* name);
Description
Allocates resource for a new element.
Return value
•
•
na_elem_free
Prototype
void na_elem_free(na_elem_t* elt);
Description
Frees all resources used by the input output element elt.
Return value
None
Parent topic: C and C++ Core APIs

Was this topic helpful? Send comments to NetApp.