fwupd/libfwupdplugin/fu-firmware-common.h
Richard Hughes 2d84386034 Remove unused, unsafe and deprecated functions from libfwupdplugin
Keeping *internal* API and ABI compatibility makes working with an already
complex codebase more mentally demanding than it needs to be.

Remember: plugins should be in-tree and upstream! If your out of tree plugin
stops working then it should be upstream.

The public-facing libfwupd will remain API and ABI stable for obvious reasons.
2021-03-09 15:47:56 +00:00

36 lines
947 B
C

/*
* Copyright (C) 2015 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include <gio/gio.h>
gboolean fu_firmware_strparse_uint4_safe (const gchar *data,
gsize datasz,
gsize offset,
guint8 *value,
GError **error);
gboolean fu_firmware_strparse_uint8_safe (const gchar *data,
gsize datasz,
gsize offset,
guint8 *value,
GError **error);
gboolean fu_firmware_strparse_uint16_safe (const gchar *data,
gsize datasz,
gsize offset,
guint16 *value,
GError **error);
gboolean fu_firmware_strparse_uint24_safe (const gchar *data,
gsize datasz,
gsize offset,
guint32 *value,
GError **error);
gboolean fu_firmware_strparse_uint32_safe (const gchar *data,
gsize datasz,
gsize offset,
guint32 *value,
GError **error);