[tracker/wip/sam/resource-rebase-1] squash! Use TrackerResource instead of TrackerSparqlBuilder in all extractors
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/sam/resource-rebase-1] squash! Use TrackerResource instead of TrackerSparqlBuilder in all extractors
- Date: Mon, 27 Jun 2016 00:05:16 +0000 (UTC)
commit 88b5da216921556c4ab4f3cdcb8faa996f4cc676
Author: Sam Thursfield <sam afuera me uk>
Date: Mon Jun 27 01:04:10 2016 +0100
squash! Use TrackerResource instead of TrackerSparqlBuilder in all extractors
Update libtracker-extract documentation to make it clear that the
library is private, and remove an outdated example.
We don't actually generate gtk-doc documentation for libtracker-extract
at all right now, but the existing comments should still be useful for
folk reading the code.
src/libtracker-extract/tracker-data.h | 61 ++++----------------------------
1 files changed, 8 insertions(+), 53 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-data.h b/src/libtracker-extract/tracker-data.h
index d224507..05b00db 100644
--- a/src/libtracker-extract/tracker-data.h
+++ b/src/libtracker-extract/tracker-data.h
@@ -32,62 +32,17 @@
G_BEGIN_DECLS
/**
- * SECTION:tracker-data
- * @title: How to use libtracker-extract
- * @short_description: The essentials by example
- * @stability: Stable
+ * SECTION:tracker-extract
+ * @title: libtracker-extract
+ * @stability: Unstable
* @include: libtracker-extract/tracker-extract.h
*
- * The libtracker-extract library is the foundation for Tracker
- * metadata extraction of embedded data in files.
+ * The libtracker-extract library is an internal, private library for Tracker
+ * metadata extraction modules. Third party applications should not link
+ * against libtracker-extract, because its API may change at any time.
*
- * Tracker comes with extractors written for the most common file
- * types (like MP3, JPEG, PNG, etc.), however, for more special cases,
- * 3rd party applications may want to write their own plugin to
- * extract their own file formats. This documentation describes how to
- * do that.
- *
- * <example>
- * <title>Basic extractor example</title>
- * An example of how to write an extractor to retrieve PNG embedded
- * metadata.
- * FIXME: rewrite with TrackerResource!
- * <programlisting>
- * G_MODULE_EXPORT gboolean
- * tracker_extract_get_metadata (TrackerExtractInfo *info)
- * {
- * GFile *file;
- * TrackerSparqlBuilder *metadata;
- * gint height, width;
- *
- * file = tracker_extract_info_get_file (info);
- * metadata = tracker_extract_info_get_metadata_builder (info);
- *
- * /* Do data extraction. */
- * height = ...
- * width = ...
- *
- * /* Insert data into TrackerSparqlBuilder object. */
- * tracker_sparql_builder_predicate (metadata, "a");
- * tracker_sparql_builder_object (metadata, "nfo:Image");
- * tracker_sparql_builder_object (metadata, "nmm:Photo");
- *
- * tracker_sparql_builder_predicate (metadata, "nfo:width");
- * tracker_sparql_builder_object_int64 (metadata, width);
- *
- * tracker_sparql_builder_predicate (metadata, "nfo:height");
- * tracker_sparql_builder_object_int64 (metadata, height);
- *
- * /* Were we successful or not? */
- * return TRUE;
- * }
- * </programlisting>
- * </example>
- *
- * NOTE: This example has changed subtly since 0.10. For details see
- * tracker_extract_get_metadata().
- *
- * Since: 0.12
+ * If you want to insert metadata into the Tracker store from a 3rd party
+ * application, look at the TrackerDecorator class from libtracker-miner.
*/
gboolean tracker_extract_module_init (TrackerModuleThreadAwareness *thread_awareness_ret,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]