mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-03 06:40:00 +00:00

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.
36 lines
947 B
C
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);
|