aciObjectCreate

Call the aciObjectCreate function to create an ACI object.

Syntax

aciError aciObjectCreate (
   t_aciObject** ppObject,
   aciObjectType nType);

Arguments

Arguments Type/Description
ppObject t_aciObject**  On return, the ACI object you created.
nType

aciObjectType  One of the following data type constants:

  • ACI_CONNECTION. A connection object.

  • ACI_COMMAND. A command object.

  • ACI_DATA. A data object.

Discussion

This function creates and allocates memory for an ACI object of type nType. Typically, you do not create ACI_DATA type objects; call the aciObjectExecute function instead. For information about the aciObjectExecute function, see aciObjectExecute.

Examples

aciObjectCreate(&pCommand, ACI_COMMAND);
aciObjectCreate(&pConnection, ACI_CONNECTION);
aciObjectCreate(&pResponse, ACI_DATA);