fwupd/plugins/modem-manager/fu-mm-utils.h
Aleksander Morgado 3417128704 modem-manager: add generic support for PCI based modems
No longer rely on the modems being USB based, we can also support PCI
based devices with the same protocols.
2021-05-01 15:43:38 +01:00

25 lines
596 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);
#endif /* __FU_MM_UTILS_H */