ddpi_elf_get_source operation

The ddpi_elf_get_source operation finds the source data of the Elf object.

Prototype

int ddpi_elf_get_source(
  Ddpi_Elf              d_elf,
  Ddpi_Elf_Source*      ret_source,
  Ddpi_Elf_Source_Type*
                        ret_source_type, 
  Ddpi_Error*           error);                 

Parameters

d_elf
Input. This accepts a Ddpi_Elf object.
ret_source
Output. This returns the source data. This cannot be a NULL value.
ret_source_type
Output. This returns the type of the source data. This cannot be a NULL value.
error
See The libddpi error parameter.

Return values

DW_DLV_OK
Returned upon successful return of source data.
DW_DLV_NO_ENTRY
Never returned.
DW_DLV_ERROR
This value is returned if:
  • access is NULL.
  • The ELF descriptor within the Ddpi_Elf object is NULL.
  • The Ddpi_Info or Ddpi_Info object associated with d_elf is NULL.