From 1284b3fa0addf21070c6d9ce697623a04862cdde Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 17 Jun 2014 11:52:49 +0100 Subject: Add libappstream-builder from the createrepo_as project --- libappstream-builder/asb-plugin-loader.h | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 libappstream-builder/asb-plugin-loader.h (limited to 'libappstream-builder/asb-plugin-loader.h') 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 + * + * 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 + +#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 */ -- cgit v1.2.1