Function ziAPIInit#

ZIResult_enum ziAPIInit(ZIConnection *conn)#

Initializes a ZIConnection structure.

This function initializes the structure so that it is ready to connect to Data Server. It allocates memory and sets up the infrastructure needed.

See Connection for an example

Parameters:

conn[out] Pointer to ZIConnection that is to be initialized

Returns:

  • ZI_INFO_SUCCESS on success

  • ZI_ERROR_MALLOC on memory allocation failure

  • Other return codes may also be returned, for a detailed error message use ziAPIGetLastError.