Creates a data area for a registered library.
#include <library.h> int set_app_data ( int lib_id, void *data_area);
(IN) Specifies the ID of the registered library.
(OUT) Points to a data area for the registered library.
If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:
Because a context is needed for set_app_data, it must be called on the application thread. To ensure context, you might need to wrapper the function with nxExportInterfaceWrapped.
The data area is for the registered library's own use and is hidden from the calling application.
Call get_app_data first to determine if a data area has already been allocated for the calling application. If zero is returned, allocate the necessary data structures and record their pointers by calling set_app_data.
For sample code, see Library.c.