mirror of
https://git.proxmox.com/git/fwupd
synced 2026-03-28 09:59:03 +00:00
FuEngine is getting somewhat large and complicated, so split out as much plugin list-specific functionality as possible
48 lines
1.6 KiB
C
48 lines
1.6 KiB
C
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
|
|
*
|
|
* Copyright (C) 2017 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* Licensed under the GNU Lesser General Public License Version 2.1
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef __FU_PLUGIN_LIST_H
|
|
#define __FU_PLUGIN_LIST_H
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#include <glib-object.h>
|
|
|
|
#include "fu-plugin.h"
|
|
|
|
#define FU_TYPE_PLUGIN_LIST (fu_plugin_list_get_type ())
|
|
G_DECLARE_FINAL_TYPE (FuPluginList, fu_plugin_list, FU, PLUGIN_LIST, GObject)
|
|
|
|
FuPluginList *fu_plugin_list_new (void);
|
|
void fu_plugin_list_add (FuPluginList *self,
|
|
FuPlugin *plugin);
|
|
GPtrArray *fu_plugin_list_get_all (FuPluginList *self);
|
|
FuPlugin *fu_plugin_list_find_by_name (FuPluginList *self,
|
|
const gchar *name,
|
|
GError **error);
|
|
gboolean fu_plugin_list_depsolve (FuPluginList *self,
|
|
GError **error);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __FU_PLUGIN_LIST_H */
|
|
|