fwupd/plugins/modem-manager/fu-mbim-qdu-updater.h
Jarvis Jiang 6b79e9201d modem-manager: Add MBIM QDU support for firmware downloading in the MM plugin
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>
2021-06-28 10:11:15 +01:00

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) */