summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-plugin-loader.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-06-17 11:52:49 +0100
committerRichard Hughes <richard@hughsie.com>2014-06-17 12:01:32 +0100
commit1284b3fa0addf21070c6d9ce697623a04862cdde (patch)
treea9ecf1b4d984e41e56179ebd6453288dd712843e /libappstream-builder/asb-plugin-loader.h
parent0ec1dd10ee2281d4f6e102e4e8da8365332540b1 (diff)
downloadappstream-glib-1284b3fa0addf21070c6d9ce697623a04862cdde.tar.gz
Add libappstream-builder from the createrepo_as project
Diffstat (limited to 'libappstream-builder/asb-plugin-loader.h')
-rw-r--r--libappstream-builder/asb-plugin-loader.h48
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 */