mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-28 07:18:28 +00:00

Add the mbim-qdu support for firmware downloading, it will be used for T99W175 module of Foxconn. Signed-off-by: Jarvis Jiang <jarvis.w.jiang@gmail.com>
30 lines
972 B
C
30 lines
972 B
C
/*
|
|
* Copyright (C) 2021 Jarvis Jiang <jarvis.w.jiang@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <libmbim-glib.h>
|
|
#include "fu-mm-device.h"
|
|
|
|
#if MBIM_CHECK_VERSION(1,25,3)
|
|
#define FU_TYPE_MBIM_QDU_UPDATER (fu_mbim_qdu_updater_get_type ())
|
|
G_DECLARE_FINAL_TYPE (FuMbimQduUpdater, fu_mbim_qdu_updater, FU, MBIM_QDU_UPDATER, GObject)
|
|
|
|
FuMbimQduUpdater *fu_mbim_qdu_updater_new (const gchar *mbim_port);
|
|
gboolean fu_mbim_qdu_updater_open (FuMbimQduUpdater *self,
|
|
GError **error);
|
|
GArray *fu_mbim_qdu_updater_write (FuMbimQduUpdater *self,
|
|
const gchar *filename,
|
|
GBytes *blob,
|
|
FuDevice *device,
|
|
GError **error);
|
|
gchar *fu_mbim_qdu_updater_check_ready (FuMbimQduUpdater *self,
|
|
GError **error);
|
|
gboolean fu_mbim_qdu_updater_close (FuMbimQduUpdater *self,
|
|
GError **error);
|
|
|
|
#endif /* MBIM_CHECK_VERSION(1,25,3) */
|