ddpi_stackstate_set_stack_format operation

The ddpi_stackstate_set_stack_format operation assigns the given format to the Ddpi_StackState format.

Prototype

int ddpi_stackstate_set_stack_format(
  Ddpi_StackState       stackstate,
  Ddpi_Stack_Format     new_format,
  Ddpi_Error*           error);

Parameters

stackstate
Input. This accepts the Ddpi_StackState object.
new_format
Input. This accepts the new stack format.
error
See The libddpi error parameter.

Return values

DW_DLV_OK
Returned when a pointer to the format of the given state-stack object has been successfully assigned.
DW_DLV_NO_ENTRY
Never returned.
DW_DLV_ERROR
This value is returned if:
  • stackstate is NULL.
  • The Ddpi_Info object associated with stackstate is NULL.
  • ret_format is NULL.