fwupd/plugins/modem-manager/fu-mm-utils.h
Richard Hughes 7cb0592f72 trivial: Fix a compile error with older versions of gudev
Just move the G_DEFINE_AUTOPTR_CLEANUP_FUNC to the internal header to avoid
forgetting to define this in each plugin.
2019-11-02 07:47:02 -05:00

23 lines
532 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_sysfs_path,
gint *port_ifnum,
GError **error);
gboolean fu_mm_utils_get_port_info (const gchar *path,
gchar **device_sysfs_path,
gint *port_ifnum,
GError **error);
#endif /* __FU_MM_UTILS_H */