Top | ![]() |
![]() |
![]() |
![]() |
TrackerExtractInfoTrackerExtractInfo — struct used to pass information to and from a Tracker extract module |
TrackerExtractInfo * | tracker_extract_info_new () |
TrackerExtractInfo * | tracker_extract_info_ref () |
void | tracker_extract_info_unref () |
TrackerSparqlBuilder * | tracker_extract_info_get_preupdate_builder () |
TrackerSparqlBuilder * | tracker_extract_info_get_postupdate_builder () |
TrackerSparqlBuilder * | tracker_extract_info_get_metadata_builder () |
const gchar * | tracker_extract_info_get_where_clause () |
void | tracker_extract_info_set_where_clause () |
GFile * | tracker_extract_info_get_file () |
const gchar * | tracker_extract_info_get_mimetype () |
const gchar * | tracker_extract_info_get_graph () |
The TrackerExtractInfo structure is used to pass information on the file being extracted to an extractor module and contains objects to hold the SPARQL updates generated by the extractor.
TrackerExtractInfo * tracker_extract_info_new (GFile *file
,const gchar *mimetype
,const gchar *graph
);
Returns a newly created TrackerExtractInfo
Since 0.12
TrackerExtractInfo *
tracker_extract_info_ref (TrackerExtractInfo *info
);
Increases the reference count of info
Since 0.12
void
tracker_extract_info_unref (TrackerExtractInfo *info
);
Decreases the reference count of info
, freeing all its associated resources
if it reaches 0.
Since 0.12
TrackerSparqlBuilder *
tracker_extract_info_get_preupdate_builder
(TrackerExtractInfo *info
);
Returns a TrackerSparqlBuilder containing any separate updates that could apply to the file, such as author/band information in audio files, and so on.
Since 0.12
TrackerSparqlBuilder *
tracker_extract_info_get_postupdate_builder
(TrackerExtractInfo *info
);
Returns a TrackerSparqlBuilder containing separate updates for resources that are contained within the file and need to refer to it.
TrackerSparqlBuilder for resources that need inserting after the file resource.
[transfer none]
Since 0.12.4
TrackerSparqlBuilder *
tracker_extract_info_get_metadata_builder
(TrackerExtractInfo *info
);
Returns a TrackerSparqlBuilder containing the file metadata.
Since 0.12
const gchar *
tracker_extract_info_get_where_clause (TrackerExtractInfo *info
);
Returns the where clause that will apply to the
other metadata contained in info
.
Since 0.12
void tracker_extract_info_set_where_clause (TrackerExtractInfo *info
,const gchar *where
);
Sets the where clause for the returned metadata.
Since 0.12
GFile *
tracker_extract_info_get_file (TrackerExtractInfo *info
);
Returns a GFile pointing to the file being affected
by the metadata extraction represented by info
Since 0.12
const gchar *
tracker_extract_info_get_mimetype (TrackerExtractInfo *info
);
Returns the mimetype being used for the file metadata extraction.
Since 0.12
const gchar *
tracker_extract_info_get_graph (TrackerExtractInfo *info
);
Returns the SPARQL graph that will be used when inserting metadata.
Since 0.12