diff options
Diffstat (limited to 'libappstream-builder/asb-plugin-loader.h')
-rw-r--r-- | libappstream-builder/asb-plugin-loader.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/libappstream-builder/asb-plugin-loader.h b/libappstream-builder/asb-plugin-loader.h new file mode 100644 index 0000000..1630d2c --- /dev/null +++ b/libappstream-builder/asb-plugin-loader.h @@ -0,0 +1,48 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- + * + * Copyright (C) 2014 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 __ASB_PLUGIN_LOADER_H +#define __ASB_PLUGIN_LOADER_H + +#include <glib.h> + +#include "asb-plugin.h" + +G_BEGIN_DECLS + +gboolean asb_plugin_loader_setup (GPtrArray *plugins, + GError **error); +GPtrArray *asb_plugin_loader_get_globs (GPtrArray *plugins); +void asb_plugin_loader_merge (GPtrArray *plugins, + GList **apps); +gboolean asb_plugin_loader_process_app (GPtrArray *plugins, + AsbPackage *pkg, + AsbApp *app, + const gchar *tmpdir, + GError **error); +GPtrArray *asb_plugin_loader_new (void); +void asb_plugin_loader_free (GPtrArray *plugins); +AsbPlugin *asb_plugin_loader_match_fn (GPtrArray *plugins, + const gchar *filename); + +G_END_DECLS + +#endif /* __ASB_PLUGIN_LOADER_H */ |