ddpi_module_get_usage operation

The ddpi_module_get_usage operation returns the number of times that the Ddpi_Module object was created.

Prototype

int ddpi_module_get_usage(        
  Ddpi_Module           module,   
  Dwarf_Signed*         ret_usage,
  Ddpi_Error*           error);  

Parameters

module
Input. This accepts the Ddpi_Module object.
ret_usage
Output. This returns the number of times that the Ddpi_Module object was created.
error
See The libddpi error parameter.

Return values

DW_DLV_OK
Returned upon successful retrieval of the number of times that the Ddpi_Module object was created.
DW_DLV_NO_ENTRY
Never returned.
DW_DLV_ERROR
This value is returned if:
  • module is NULL
  • The Ddpi_Info object associated with module is NULL
  • ret_usage is NULL