mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-03 13:41:12 +00:00

Set the alt_name_for_display as the target name and use the logical ID as the target alt-name. This allows us to use the ->to_string() vfunc.
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
/*
|
|
* Copyright (C) 2015 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <gusb.h>
|
|
|
|
#include "fu-dfu-device.h"
|
|
#include "fu-dfu-sector.h"
|
|
#include "fu-dfu-target.h"
|
|
|
|
FuDfuTarget *
|
|
fu_dfu_target_new(void);
|
|
|
|
GBytes *
|
|
fu_dfu_target_upload_chunk(FuDfuTarget *self,
|
|
guint16 index,
|
|
gsize buf_sz,
|
|
FuProgress *progress,
|
|
GError **error);
|
|
gboolean
|
|
fu_dfu_target_download_chunk(FuDfuTarget *self,
|
|
guint16 index,
|
|
GBytes *bytes,
|
|
FuProgress *progress,
|
|
GError **error);
|
|
gboolean
|
|
fu_dfu_target_attach(FuDfuTarget *self, FuProgress *progress, GError **error);
|
|
void
|
|
fu_dfu_target_set_alt_idx(FuDfuTarget *self, guint8 alt_idx);
|
|
void
|
|
fu_dfu_target_set_alt_setting(FuDfuTarget *self, guint8 alt_setting);
|
|
|
|
/* for the other implementations */
|
|
void
|
|
fu_dfu_target_set_alt_name(FuDfuTarget *self, const gchar *alt_name);
|
|
gboolean
|
|
fu_dfu_target_check_status(FuDfuTarget *self, GError **error);
|
|
FuDfuSector *
|
|
fu_dfu_target_get_sector_for_addr(FuDfuTarget *self, guint32 addr);
|
|
|
|
/* export this just for the self tests */
|
|
gboolean
|
|
fu_dfu_target_parse_sectors(FuDfuTarget *self, const gchar *alt_name, GError **error);
|