[tracker/wip/sam/resource: 6/9] libtracker-sparql: Fix compile of tracker-resource.h
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/sam/resource: 6/9] libtracker-sparql: Fix compile of tracker-resource.h
- Date: Fri, 8 Apr 2016 21:49:45 +0000 (UTC)
commit cb9604bbbfbfafa987bf2074de05d0f132ab4962
Author: Sam Thursfield <sam afuera me uk>
Date: Fri Apr 8 22:19:04 2016 +0100
libtracker-sparql: Fix compile of tracker-resource.h
src/libtracker-sparql/tracker-resource.c | 3 +++
src/libtracker-sparql/tracker-resource.h | 7 +++++--
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-resource.c b/src/libtracker-sparql/tracker-resource.c
index ee80ca6..0658862 100644
--- a/src/libtracker-sparql/tracker-resource.c
+++ b/src/libtracker-sparql/tracker-resource.c
@@ -26,6 +26,9 @@
#include <tracker-uri.h>
#include <tracker-resource.h>
+/* Necessary to be able to use the TrackerSparqlBuilder Vala code */
+#include "tracker-generated-no-checks.h"
+
typedef struct {
char *identifier;
GHashTable *properties;
diff --git a/src/libtracker-sparql/tracker-resource.h b/src/libtracker-sparql/tracker-resource.h
index e300534..4561df7 100644
--- a/src/libtracker-sparql/tracker-resource.h
+++ b/src/libtracker-sparql/tracker-resource.h
@@ -22,10 +22,13 @@
#include <glib-object.h>
-#include <libtracker-sparql/tracker-generated.h>
-
G_BEGIN_DECLS
+/* This is defined in the Vala code, which we can't include here
+ * because it might not yet have been built.
+ */
+typedef struct _TrackerSparqlBuilder TrackerSparqlBuilder;
+
#define TRACKER_TYPE_RESOURCE tracker_resource_get_type()
G_DECLARE_DERIVABLE_TYPE (TrackerResource, tracker_resource, TRACKER, RESOURCE, GObject)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]