fwupd/plugins/modem-manager/fu-mm-utils.h
Ivan Mikhanchuk db8a9927f4 modem-manager: add firehose update method
Adds firehose update protocol, qcdm port handling, program file copy to the cache directory
2021-07-13 21:57:08 +01:00

29 lines
758 B
C

/*
* Copyright (C) 2019 Aleksander Morgado <aleksander@aleksander.es>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef __FU_MM_UTILS_H
#define __FU_MM_UTILS_H
#include "config.h"
#include <gudev/gudev.h>
gboolean fu_mm_utils_get_udev_port_info (GUdevDevice *dev,
gchar **device_bus,
gchar **device_sysfs_path,
gint *port_usb_ifnum,
GError **error);
gboolean fu_mm_utils_get_port_info (const gchar *path,
gchar **device_bus,
gchar **device_sysfs_path,
gint *port_usb_ifnum,
GError **error);
gboolean fu_mm_utils_find_device_file (const gchar *device_sysfs_path,
const gchar *subsystem,
gchar **out_device_file,
GError **error);
#endif /* __FU_MM_UTILS_H */