[gnome-software: 2/6] contrib: Add missing header to example plugin
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 2/6] contrib: Add missing header to example plugin
- Date: Tue, 16 Mar 2021 12:06:09 +0000 (UTC)
commit 3b357e489cb0afa6543be2bc92982276ce731dab
Author: Philip Withnall <pwithnall endlessos org>
Date: Sun Mar 14 16:09:01 2021 +0000
contrib: Add missing header to example plugin
This was previously pulled in implicitly by including
`gnome-software.h`, but that’s a bit mystical. Better to include it
explicitly, since the example plugin uses GLib types in its own code.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Helps: #1168
contrib/gs-plugin-example.c | 1 +
doc/api/gnome-software-docs.xml | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/contrib/gs-plugin-example.c b/contrib/gs-plugin-example.c
index 980a2dcfb..453c7f625 100644
--- a/contrib/gs-plugin-example.c
+++ b/contrib/gs-plugin-example.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include <glib.h>
#include <gnome-software.h>
/*
diff --git a/doc/api/gnome-software-docs.xml b/doc/api/gnome-software-docs.xml
index d66965fd2..0cd42ce3f 100644
--- a/doc/api/gnome-software-docs.xml
+++ b/doc/api/gnome-software-docs.xml
@@ -76,6 +76,7 @@
* Copyright (C) 2016 Richard Hughes
*/
+#include <glib.h>
#include <gnome-software.h>
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]