summaryrefslogtreecommitdiff
path: root/src/libtracker-extract/tracker-extract-info.h
diff options
context:
space:
mode:
authorSam Thursfield <ssssam@gmail.com>2016-03-27 00:15:33 +0000
committerSam Thursfield <sam@afuera.me.uk>2016-07-04 21:53:34 +0100
commit1c8d96d7abd173d3fb07004cbe502ee9fd5bb110 (patch)
treee1e7a76e1d98c37f8bb9a3cf501fd3d190bf5bdc /src/libtracker-extract/tracker-extract-info.h
parentf0ff43118d61d01597e7ecb1d9033901b1e52f06 (diff)
downloadtracker-wip/sam/resource-rebase-3.tar.gz
Use TrackerResource instead of TrackerSparqlBuilder in all extractorswip/sam/resource-rebase-3
For a long time, all the Tracker extractors have manually constructed a SPARQL update command using TrackerSparqlBuilder to represent their output. This commit changes all of them to use the TrackerResource class instead, which makes the code a lot more concise and readable. This introduces some API breaks in the internal libtracker-extract library. This has been a private library since Tracker 0.16 or earlier, so it's fine. If the extractors only output SPARQL then they are only useful to people who are using a SPARQL store. Now we can output a serialization format like Turtle as well. This will hopefully make the extract modules useful outside of Tracker itself. https://bugzilla.gnome.org/show_bug.cgi?id=767472
Diffstat (limited to 'src/libtracker-extract/tracker-extract-info.h')
-rw-r--r--src/libtracker-extract/tracker-extract-info.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/libtracker-extract/tracker-extract-info.h b/src/libtracker-extract/tracker-extract-info.h
index 857956fb3..5036f8d42 100644
--- a/src/libtracker-extract/tracker-extract-info.h
+++ b/src/libtracker-extract/tracker-extract-info.h
@@ -40,21 +40,15 @@ typedef struct _TrackerExtractInfo TrackerExtractInfo;
GType tracker_extract_info_get_type (void) G_GNUC_CONST;
TrackerExtractInfo * tracker_extract_info_new (GFile *file,
- const gchar *mimetype,
- const gchar *graph,
- const gchar *urn);
+ const gchar *mimetype);
TrackerExtractInfo * tracker_extract_info_ref (TrackerExtractInfo *info);
void tracker_extract_info_unref (TrackerExtractInfo *info);
GFile * tracker_extract_info_get_file (TrackerExtractInfo *info);
const gchar * tracker_extract_info_get_mimetype (TrackerExtractInfo *info);
-const gchar * tracker_extract_info_get_graph (TrackerExtractInfo *info);
-const gchar * tracker_extract_info_get_urn (TrackerExtractInfo *info);
-TrackerSparqlBuilder *tracker_extract_info_get_preupdate_builder (TrackerExtractInfo *info);
-TrackerSparqlBuilder *tracker_extract_info_get_postupdate_builder (TrackerExtractInfo *info);
-TrackerSparqlBuilder *tracker_extract_info_get_metadata_builder (TrackerExtractInfo *info);
-const gchar * tracker_extract_info_get_where_clause (TrackerExtractInfo *info);
-void tracker_extract_info_set_where_clause (TrackerExtractInfo *info,
- const gchar *where);
+
+TrackerResource * tracker_extract_info_get_resource (TrackerExtractInfo *info);
+void tracker_extract_info_set_resource (TrackerExtractInfo *info,
+ TrackerResource *resource);
#ifdef HAVE_LIBMEDIAART