/src/fwupd/plugins/amd-afc/fu-amd-afc-pending.c
Line | Count | Source |
1 | | /* |
2 | | * Copyright 2026 Advanced Micro Devices, Inc. |
3 | | * |
4 | | * SPDX-License-Identifier: LGPL-2.1-or-later |
5 | | */ |
6 | | |
7 | | #include "config.h" |
8 | | |
9 | | #include "fu-amd-afc-pending.h" |
10 | | |
11 | | void |
12 | | fu_amd_afc_pending_export(FuAmdAfcPending *self, FuFirmwareExportFlags flags, XbBuilderNode *bn) |
13 | 0 | { |
14 | 0 | fu_xmlb_builder_insert_kx(bn, "setting", self->setting); |
15 | 0 | if (self->value != NULL) |
16 | 0 | fu_xmlb_builder_insert_kv(bn, "value", self->value); |
17 | 0 | } |
18 | | |
19 | | void |
20 | | fu_amd_afc_pending_free(FuAmdAfcPending *self) |
21 | 0 | { |
22 | 0 | g_free(self->value); |
23 | 0 | g_free(self); |
24 | 0 | } |