Top | ![]() |
![]() |
![]() |
![]() |
#define | DFU_TYPE_ELEMENT |
DfuElement * | dfu_element_new () |
GBytes * | dfu_element_get_contents () |
guint32 | dfu_element_get_address () |
void | dfu_element_set_contents () |
void | dfu_element_set_address () |
void | dfu_element_set_target_size () |
gchar * | dfu_element_to_string () |
This object represents an binary blob of data at a specific address.
This allows relocatable data segments to be stored in different locations on the device itself.
See also: DfuImage, DfuFirmware
DfuElement *
dfu_element_new (void
);
Creates a new DFU element object.
Since: 0.5.4
GBytes *
dfu_element_get_contents (DfuElement *element
);
Gets the element data.
Since: 0.5.4
guint32
dfu_element_get_address (DfuElement *element
);
Gets the alternate setting.
Since: 0.5.4
void dfu_element_set_contents (DfuElement *element
,GBytes *contents
);
Sets the element data.
Since: 0.5.4
void dfu_element_set_address (DfuElement *element
,guint32 address
);
Sets the vendor ID.
Since: 0.5.4
void dfu_element_set_target_size (DfuElement *element
,guint32 target_size
);
Sets a target size for the element. If the prepared element is smaller than this then it will be padded with NUL bytes up to the required size.
Since: 0.5.4
gchar *
dfu_element_to_string (DfuElement *element
);
Returns a string representaiton of the object.
Since: 0.5.4