fwupd/src/fu-keyring-utils.h
Richard Hughes 481aa2a923 Port from libappstream-glib to libxmlb
The libxmlb library is much faster to query, and does not require the daemon
to parse the XML metadata at startup. It's a zero-copy mmap design that is more
modern and less clunky.

RSS has reduced from 3Mb (peak 3.61Mb) to 1Mb (peak 1.07Mb) and the startup
time has gone from 280ms to 250ms.
2018-10-17 14:41:13 +01:00

22 lines
499 B
C

/*
* Copyright (C) 2017-2018 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef __FU_KEYRING_UTILS_H__
#define __FU_KEYRING_UTILS_H__
#include <xmlb.h>
#include "fu-keyring.h"
#include "fwupd-enums.h"
FuKeyring *fu_keyring_create_for_kind (FwupdKeyringKind kind,
GError **error);
gboolean fu_keyring_get_release_trust_flags (XbNode *release,
FwupdTrustFlags *trust_flags,
GError **error);
#endif /* __FU_KEYRING_UTILS_H__ */