ddpi_elf_set_source operation

The ddpi_elf_set_source operation stores the value returned by the elf_begin operation. The value can be a file descriptor, file pointer, or memory block.

Prototype

int ddpi_elf_set_source(
  Ddpi_Elf              d_elf,
  Ddpi_Elf_Source       source,
  Ddpi_Elf_Source_Type
                        source_type,
  Ddpi_Error*           error);             

Parameters

d_elf
Input. This accepts a Ddpi_Elf object.
source
Input. This accepts the source data.
source_type
Input. This accepts the type of source data.
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:
  • d_elf is NULL
  • The Ddpi_Info or Ddpi_Info object associated with d_elf is NULL.