summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-provide-private.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-05-19 09:44:20 +0100
committerRichard Hughes <richard@hughsie.com>2014-05-19 09:48:25 +0100
commit93301c198eac4401441c8eda12c5aa8472125991 (patch)
tree5b127f5a81e8b2f7a093d30bc65a71d0c1627bfd /libappstream-glib/as-provide-private.h
parent9d1f53401aa9d835d650704bad8944ec01da06f1 (diff)
downloadappstream-glib-93301c198eac4401441c8eda12c5aa8472125991.tar.gz
Add AsProvide
This is an abstract AppStream provide.
Diffstat (limited to 'libappstream-glib/as-provide-private.h')
-rw-r--r--libappstream-glib/as-provide-private.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/libappstream-glib/as-provide-private.h b/libappstream-glib/as-provide-private.h
new file mode 100644
index 0000000..c2527e8
--- /dev/null
+++ b/libappstream-glib/as-provide-private.h
@@ -0,0 +1,42 @@
+/* -*- 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
+ */
+
+#if !defined (__APPSTREAM_GLIB_PRIVATE_H) && !defined (AS_COMPILATION)
+#error "Only <appstream-glib.h> can be included directly."
+#endif
+
+#ifndef __AS_PROVIDE_PRIVATE_H
+#define __AS_PROVIDE_PRIVATE_H
+
+#include "as-provide.h"
+
+G_BEGIN_DECLS
+
+GNode *as_provide_node_insert (AsProvide *provide,
+ GNode *parent,
+ gdouble api_version);
+gboolean as_provide_node_parse (AsProvide *provide,
+ GNode *node,
+ GError **error);
+
+G_END_DECLS
+
+#endif /* __AS_PROVIDE_PRIVATE_H */