tracker-crawler.h | tracker-crawler.h | |||
---|---|---|---|---|
skipping to change at line 40 | skipping to change at line 40 | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
#define TRACKER_TYPE_CRAWLER (tracker_crawler_get_type ()) | #define TRACKER_TYPE_CRAWLER (tracker_crawler_get_type ()) | |||
#define TRACKER_CRAWLER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), TRACKER_TYPE_CRAWLER, TrackerCrawler)) | #define TRACKER_CRAWLER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), TRACKER_TYPE_CRAWLER, TrackerCrawler)) | |||
#define TRACKER_CRAWLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_CRAWLER, TrackerCrawlerClass)) | #define TRACKER_CRAWLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_CRAWLER, TrackerCrawlerClass)) | |||
#define TRACKER_IS_CRAWLER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((objec t), TRACKER_TYPE_CRAWLER)) | #define TRACKER_IS_CRAWLER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((objec t), TRACKER_TYPE_CRAWLER)) | |||
#define TRACKER_IS_CRAWLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_CRAWLER)) | #define TRACKER_IS_CRAWLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_CRAWLER)) | |||
#define TRACKER_CRAWLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_CRAWLER, TrackerCrawlerClass)) | #define TRACKER_CRAWLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_CRAWLER, TrackerCrawlerClass)) | |||
/* Max timeouts time (in msec) */ | /* Max timeouts time (in msec) */ | |||
#define TRACKER_MAX_TIMEOUT_INTERVAL 1000 | #define MAX_TIMEOUT_INTERVAL 1000 | |||
typedef struct TrackerCrawler TrackerCrawler; | typedef struct TrackerCrawler TrackerCrawler; | |||
typedef struct TrackerCrawlerClass TrackerCrawlerClass; | typedef struct TrackerCrawlerClass TrackerCrawlerClass; | |||
typedef struct TrackerCrawlerPrivate TrackerCrawlerPrivate; | typedef struct TrackerCrawlerPrivate TrackerCrawlerPrivate; | |||
struct TrackerCrawler { | struct TrackerCrawler { | |||
GObject parent; | GObject parent; | |||
TrackerCrawlerPrivate *priv; | TrackerCrawlerPrivate *priv; | |||
}; | }; | |||
skipping to change at line 83 | skipping to change at line 83 | |||
TrackerCrawler *tracker_crawler_new (void); | TrackerCrawler *tracker_crawler_new (void); | |||
gboolean tracker_crawler_start (TrackerCrawler *crawler, | gboolean tracker_crawler_start (TrackerCrawler *crawler, | |||
GFile *file, | GFile *file, | |||
gboolean recurse); | gboolean recurse); | |||
void tracker_crawler_stop (TrackerCrawler *crawler); | void tracker_crawler_stop (TrackerCrawler *crawler); | |||
void tracker_crawler_pause (TrackerCrawler *crawler); | void tracker_crawler_pause (TrackerCrawler *crawler); | |||
void tracker_crawler_resume (TrackerCrawler *crawler); | void tracker_crawler_resume (TrackerCrawler *crawler); | |||
void tracker_crawler_set_throttle (TrackerCrawler *crawler, | void tracker_crawler_set_throttle (TrackerCrawler *crawler, | |||
gdouble throttle); | gdouble throttle); | |||
void tracker_crawler_set_file_attributes (TrackerCrawler *crawle | ||||
r, | ||||
const gchar *file_at | ||||
tributes); | ||||
const gchar * tracker_crawler_get_file_attributes (TrackerCrawler *crawle | ||||
r); | ||||
GFileInfo * tracker_crawler_get_file_info (TrackerCrawler *crawle | ||||
r, | ||||
GFile *file); | ||||
G_END_DECLS | G_END_DECLS | |||
#endif /* __LIBTRACKER_MINER_CRAWLER_H__ */ | #endif /* __LIBTRACKER_MINER_CRAWLER_H__ */ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 12 lines changed or added | |||
tracker-exif.h | tracker-exif.h | |||
---|---|---|---|---|
skipping to change at line 31 | skipping to change at line 31 | |||
#define __LIBTRACKER_EXTRACT_EXIF_H__ | #define __LIBTRACKER_EXTRACT_EXIF_H__ | |||
#if !defined (__LIBTRACKER_EXTRACT_INSIDE__) && !defined (TRACKER_COMPILATI ON) | #if !defined (__LIBTRACKER_EXTRACT_INSIDE__) && !defined (TRACKER_COMPILATI ON) | |||
#error "only <libtracker-extract/tracker-extract.h> must be included direct ly." | #error "only <libtracker-extract/tracker-extract.h> must be included direct ly." | |||
#endif | #endif | |||
#include <glib.h> | #include <glib.h> | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
/** | ||||
* TrackerExifData: | ||||
* @y_dimension: Y dimension. | ||||
* @x_dimension: X dimension. | ||||
* @image_width: Image width. | ||||
* @document_name: Document name. | ||||
* @time: Time. | ||||
* @time_original: Original time. | ||||
* @artist: Artist. | ||||
* @user_comment: User-provided comment. | ||||
* @description: Description. | ||||
* @make: Make info. | ||||
* @model: Model info. | ||||
* @orientation: Orientation. | ||||
* @exposure_time: Exposure time. | ||||
* @fnumber: Focal ratio | ||||
* @flash: Flash info. | ||||
* @focal_length: Focal length. | ||||
* @iso_speed_ratings: ISO speed ratings. | ||||
* @metering_mode: Metering mode. | ||||
* @white_balance: White balance. | ||||
* @copyright: Copyright. | ||||
* @software: Software used. | ||||
* @x_resolution: Horizontal resolution. | ||||
* @y_resolution: Vertical resolution. | ||||
* @resolution_unit: Resolution units. | ||||
* @gps_altitude: GPS altitude. | ||||
* @gps_latitude: GPS latitude. | ||||
* @gps_longitude: GPS longitude. | ||||
* @gps_direction: GPS direction information. | ||||
* | ||||
* Structure defining EXIF data. | ||||
*/ | ||||
typedef struct { | typedef struct { | |||
gchar *y_dimension; | gchar *y_dimension; | |||
gchar *x_dimension; | gchar *x_dimension; | |||
gchar *image_width; | gchar *image_width; | |||
gchar *document_name; | gchar *document_name; | |||
gchar *time; | gchar *time; | |||
gchar *time_original; | gchar *time_original; | |||
gchar *artist; | gchar *artist; | |||
gchar *user_comment; | gchar *user_comment; | |||
gchar *description; | gchar *description; | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 33 lines changed or added | |||
tracker-guarantee.h | tracker-guarantee.h | |||
---|---|---|---|---|
skipping to change at line 33 | skipping to change at line 33 | |||
#define __LIBTRACKER_EXTRACT_GUARANTEE_H__ | #define __LIBTRACKER_EXTRACT_GUARANTEE_H__ | |||
#if !defined (__LIBTRACKER_EXTRACT_INSIDE__) && !defined (TRACKER_COMPILATI ON) | #if !defined (__LIBTRACKER_EXTRACT_INSIDE__) && !defined (TRACKER_COMPILATI ON) | |||
#error "only <libtracker-extract/tracker-extract.h> must be included direct ly." | #error "only <libtracker-extract/tracker-extract.h> must be included direct ly." | |||
#endif | #endif | |||
#include "tracker-data.h" | #include "tracker-data.h" | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
gboolean tracker_guarantee_title_from_file (TrackerSparqlBuilder *meta | gboolean tracker_guarantee_title_from_file (TrackerSparqlBuilder *met | |||
data, | adata, | |||
const gchar *key, | const gchar *key | |||
const gchar *curr | , | |||
ent_value, | const gchar *cur | |||
const gchar *uri) | rent_value, | |||
; | const gchar *uri | |||
, | ||||
gchar **p_n | ||||
ew_value); | ||||
gboolean tracker_guarantee_date_from_file_mtime (TrackerSparqlBuilder *meta data, | gboolean tracker_guarantee_date_from_file_mtime (TrackerSparqlBuilder *meta data, | |||
const gchar *key, | const gchar *key, | |||
const gchar *curr ent_value, | const gchar *curr ent_value, | |||
const gchar *uri) ; | const gchar *uri) ; | |||
G_END_DECLS | G_END_DECLS | |||
#endif /* __LIBTRACKER_EXTRACT_GUARANTEE_H__ */ | #endif /* __LIBTRACKER_EXTRACT_GUARANTEE_H__ */ | |||
End of changes. 1 change blocks. | ||||
7 lines changed or deleted | 10 lines changed or added | |||
tracker-iptc.h | tracker-iptc.h | |||
---|---|---|---|---|
skipping to change at line 33 | skipping to change at line 33 | |||
#if !defined (__LIBTRACKER_EXTRACT_INSIDE__) && !defined (TRACKER_COMPILATI ON) | #if !defined (__LIBTRACKER_EXTRACT_INSIDE__) && !defined (TRACKER_COMPILATI ON) | |||
#error "only <libtracker-extract/tracker-extract.h> must be included direct ly." | #error "only <libtracker-extract/tracker-extract.h> must be included direct ly." | |||
#endif | #endif | |||
#include <glib.h> | #include <glib.h> | |||
/* IPTC Information Interchange Model */ | /* IPTC Information Interchange Model */ | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
/** | ||||
* TrackerIptcData: | ||||
* @keywords: Keywords. | ||||
* @date_created: Date created. | ||||
* @byline: Byline. | ||||
* @credit: Credits. | ||||
* @copyright_notice: Copyright. | ||||
* @image_orientation: Image orientation. | ||||
* @byline_title: Byline title. | ||||
* @city: City. | ||||
* @state: State. | ||||
* @sublocation: Sublocation. | ||||
* @country_name: Country. | ||||
* @contact: Contact info. | ||||
* | ||||
* Structure defining IPTC data. | ||||
*/ | ||||
typedef struct { | typedef struct { | |||
gchar *keywords; | gchar *keywords; | |||
gchar *date_created; | gchar *date_created; | |||
gchar *byline; | gchar *byline; | |||
gchar *credit; | gchar *credit; | |||
gchar *copyright_notice; | gchar *copyright_notice; | |||
gchar *image_orientation; | gchar *image_orientation; | |||
gchar *byline_title; | gchar *byline_title; | |||
gchar *city; | gchar *city; | |||
gchar *state; | gchar *state; | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 17 lines changed or added | |||
tracker-miner-fs.h | tracker-miner-fs.h | |||
---|---|---|---|---|
skipping to change at line 33 | skipping to change at line 33 | |||
#if !defined (__LIBTRACKER_MINER_H_INSIDE__) && !defined (TRACKER_COMPILATI ON) | #if !defined (__LIBTRACKER_MINER_H_INSIDE__) && !defined (TRACKER_COMPILATI ON) | |||
#error "Only <libtracker-miner/tracker-miner.h> can be included directly." | #error "Only <libtracker-miner/tracker-miner.h> can be included directly." | |||
#endif | #endif | |||
#include <glib-object.h> | #include <glib-object.h> | |||
#include <gio/gio.h> | #include <gio/gio.h> | |||
#include <libtracker-sparql/tracker-sparql.h> | #include <libtracker-sparql/tracker-sparql.h> | |||
#include "tracker-miner-object.h" | #include "tracker-miner-object.h" | |||
#include "tracker-indexing-tree.h" | ||||
#include "tracker-miner-common.h" | #include "tracker-miner-common.h" | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
#define TRACKER_TYPE_MINER_FS (tracker_miner_fs_get_type()) | #define TRACKER_TYPE_MINER_FS (tracker_miner_fs_get_type()) | |||
#define TRACKER_MINER_FS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TRA CKER_TYPE_MINER_FS, TrackerMinerFS)) | #define TRACKER_MINER_FS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TRA CKER_TYPE_MINER_FS, TrackerMinerFS)) | |||
#define TRACKER_MINER_FS_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), TRACKE R_TYPE_MINER_FS, TrackerMinerFSClass)) | #define TRACKER_MINER_FS_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), TRACKE R_TYPE_MINER_FS, TrackerMinerFSClass)) | |||
#define TRACKER_IS_MINER_FS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TRA CKER_TYPE_MINER_FS)) | #define TRACKER_IS_MINER_FS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TRA CKER_TYPE_MINER_FS)) | |||
#define TRACKER_IS_MINER_FS_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), TRACK ER_TYPE_MINER_FS)) | #define TRACKER_IS_MINER_FS_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), TRACK ER_TYPE_MINER_FS)) | |||
skipping to change at line 61 | skipping to change at line 62 | |||
* Abstract miner implementation to get data from the filesystem. | * Abstract miner implementation to get data from the filesystem. | |||
**/ | **/ | |||
struct _TrackerMinerFS { | struct _TrackerMinerFS { | |||
TrackerMiner parent; | TrackerMiner parent; | |||
TrackerMinerFSPrivate *priv; | TrackerMinerFSPrivate *priv; | |||
}; | }; | |||
/** | /** | |||
* TrackerMinerFSClass: | * TrackerMinerFSClass: | |||
* @parent: parent object class | * @parent: parent object class | |||
* @check_file: Called when a file should be checked for further | ||||
* processing. | ||||
* @check_directory: Called when a directory should be checked for | ||||
* further processing. | ||||
* @check_directory_contents: Called when a directory should be | ||||
* checked for further processing, based on the directory contents. | ||||
* @process_file: Called when the metadata associated to a file is | * @process_file: Called when the metadata associated to a file is | |||
* requested. | * requested. | |||
* @ignore_next_update_file: Called after a writeback event happens on | * @ignore_next_update_file: Called after a writeback event happens on | |||
* a file (deprecated since 0.12). | * a file (deprecated since 0.12). | |||
* @monitor_directory: Called to check whether a directory should be | ||||
* modified. | ||||
* @finished: Called when all processing has been performed. | * @finished: Called when all processing has been performed. | |||
* @process_file_attributes: Called when the metadata associated with | * @process_file_attributes: Called when the metadata associated with | |||
* a file's attributes changes, for example, the mtime. | * a file's attributes changes, for example, the mtime. | |||
* @writeback_file: Called when a file must be written back | * @writeback_file: Called when a file must be written back | |||
* | * | |||
* Prototype for the abstract class, @check_file, @check_directory, | * Prototype for the abstract class, @process_file must be implemented | |||
* @check_directory_contents, @process_file and @monitor_directory | * in the deriving class in order to actually extract data. | |||
* must be implemented in the deriving class in order to actually | ||||
* extract data. | ||||
**/ | **/ | |||
typedef struct { | typedef struct { | |||
TrackerMinerClass parent; | TrackerMinerClass parent; | |||
gboolean (* check_file) (TrackerMinerFS *fs, | ||||
GFile *file); | ||||
gboolean (* check_directory) (TrackerMinerFS *fs, | ||||
GFile *file); | ||||
gboolean (* check_directory_contents) (TrackerMinerFS *fs, | ||||
GFile *parent, | ||||
GList *childre | ||||
n); | ||||
gboolean (* process_file) (TrackerMinerFS *fs, | gboolean (* process_file) (TrackerMinerFS *fs, | |||
GFile *file, | GFile *file, | |||
TrackerSparqlBuilder *builder , | TrackerSparqlBuilder *builder , | |||
GCancellable *cancell able); | GCancellable *cancell able); | |||
gboolean (* ignore_next_update_file) (TrackerMinerFS *fs, | gboolean (* ignore_next_update_file) (TrackerMinerFS *fs, | |||
GFile *file, | GFile *file, | |||
TrackerSparqlBuilder *builder , | TrackerSparqlBuilder *builder , | |||
GCancellable *cancell able); | GCancellable *cancell able); | |||
gboolean (* monitor_directory) (TrackerMinerFS *fs, | ||||
GFile *file); | ||||
void (* finished) (TrackerMinerFS *fs); | void (* finished) (TrackerMinerFS *fs); | |||
gboolean (* process_file_attributes) (TrackerMinerFS *fs, | gboolean (* process_file_attributes) (TrackerMinerFS *fs, | |||
GFile *file, | GFile *file, | |||
TrackerSparqlBuilder *builder , | TrackerSparqlBuilder *builder , | |||
GCancellable *cancell able); | GCancellable *cancell able); | |||
gboolean (* writeback_file) (TrackerMinerFS *fs, | gboolean (* writeback_file) (TrackerMinerFS *fs, | |||
GFile *file, | GFile *file, | |||
GStrv rdf_typ es, | GStrv rdf_typ es, | |||
GPtrArray *results ); | GPtrArray *results ); | |||
} TrackerMinerFSClass; | } TrackerMinerFSClass; | |||
skipping to change at line 128 | skipping to change at line 110 | |||
gboolean tracker_miner_fs_directory_remove (TrackerMinerFS *fs, | gboolean tracker_miner_fs_directory_remove (TrackerMinerFS *fs, | |||
GFile *file); | GFile *file); | |||
gboolean tracker_miner_fs_directory_remove_full (TrackerMinerF S *fs, | gboolean tracker_miner_fs_directory_remove_full (TrackerMinerF S *fs, | |||
GFile *file); | GFile *file); | |||
void tracker_miner_fs_check_file_with_priority (TrackerMin erFS *fs, | void tracker_miner_fs_check_file_with_priority (TrackerMin erFS *fs, | |||
GFile *file, | GFile *file, | |||
gint priority, | gint priority, | |||
gboolean check_parents); | gboolean check_parents); | |||
void tracker_miner_fs_check_directory_with_priority (Track erMinerFS *fs, | void tracker_miner_fs_check_directory_with_priority (Track erMinerFS *fs, | |||
GFile *file, | GFile *file, | |||
gint priority, | gint priority, | |||
gbool ean check_parents); | gbool ean check_parents); | |||
void tracker_miner_fs_check_file (TrackerMinerFS *fs, | void tracker_miner_fs_check_file (TrackerMinerFS *fs, | |||
GFile *file, | GFile *file, | |||
gboolean check_parents); | gboolean check_parents); | |||
void tracker_miner_fs_writeback_file (TrackerMinerFS *fs, | void tracker_miner_fs_writeback_file (TrackerMinerFS *fs, | |||
GFile *file, | GFile *file, | |||
GStrv rdf_types, | GStrv rdf_types, | |||
GPtrArray *results); | GPtrArray *results); | |||
void tracker_miner_fs_writeback_notify (TrackerMinerFS *fs, | void tracker_miner_fs_writeback_notify (TrackerMinerFS *fs, | |||
GFile *file, | GFile *file, | |||
skipping to change at line 171 | skipping to change at line 153 | |||
gboolean tracker_miner_fs_get_mtime_checking (TrackerMinerFS *fs); | gboolean tracker_miner_fs_get_mtime_checking (TrackerMinerFS *fs); | |||
gboolean tracker_miner_fs_get_initial_crawling (TrackerMinerFS *fs); | gboolean tracker_miner_fs_get_initial_crawling (TrackerMinerFS *fs); | |||
gboolean tracker_miner_fs_has_items_to_process (TrackerMinerFS *fs); | gboolean tracker_miner_fs_has_items_to_process (TrackerMinerFS *fs); | |||
void tracker_miner_fs_add_directory_without_parent (Tracke rMinerFS *fs, | void tracker_miner_fs_add_directory_without_parent (Tracke rMinerFS *fs, | |||
GFile *file); | GFile *file); | |||
void tracker_miner_fs_force_mtime_checking (TrackerMinerFS *fs, | void tracker_miner_fs_force_mtime_checking (TrackerMinerFS *fs, | |||
GFile *directory); | GFile *directory); | |||
TrackerIndexingTree * tracker_miner_fs_get_indexing_tree (TrackerMinerFS | ||||
*fs); | ||||
G_END_DECLS | G_END_DECLS | |||
#endif /* __LIBTRACKER_MINER_MINER_FS_H__ */ | #endif /* __LIBTRACKER_MINER_MINER_FS_H__ */ | |||
End of changes. 8 change blocks. | ||||
23 lines changed or deleted | 7 lines changed or added | |||
tracker-miner.h | tracker-miner.h | |||
---|---|---|---|---|
skipping to change at line 28 | skipping to change at line 28 | |||
*/ | */ | |||
#ifndef __LIBTRACKER_MINER_H__ | #ifndef __LIBTRACKER_MINER_H__ | |||
#define __LIBTRACKER_MINER_H__ | #define __LIBTRACKER_MINER_H__ | |||
#define __LIBTRACKER_MINER_H_INSIDE__ | #define __LIBTRACKER_MINER_H_INSIDE__ | |||
#include <libtracker-miner/tracker-crawler.h> | #include <libtracker-miner/tracker-crawler.h> | |||
#include <libtracker-miner/tracker-storage.h> | #include <libtracker-miner/tracker-storage.h> | |||
#include <libtracker-miner/tracker-thumbnailer.h> | #include <libtracker-miner/tracker-thumbnailer.h> | |||
#include <libtracker-miner/tracker-albumart.h> | #include <libtracker-miner/tracker-media-art.h> | |||
#include <libtracker-miner/tracker-network-provider.h> | #include <libtracker-miner/tracker-network-provider.h> | |||
#include <libtracker-miner/tracker-password-provider.h> | #include <libtracker-miner/tracker-password-provider.h> | |||
#include <libtracker-miner/tracker-miner-object.h> | #include <libtracker-miner/tracker-miner-object.h> | |||
#include <libtracker-miner/tracker-miner-fs.h> | #include <libtracker-miner/tracker-miner-fs.h> | |||
#include <libtracker-miner/tracker-miner-web.h> | #include <libtracker-miner/tracker-miner-web.h> | |||
#include <libtracker-miner/tracker-miner-manager.h> | #include <libtracker-miner/tracker-miner-manager.h> | |||
#include <libtracker-miner/tracker-miner-enums.h> | ||||
#include <libtracker-miner/tracker-miner-enum-types.h> | ||||
#include <libtracker-miner/tracker-indexing-tree.h> | ||||
#undef __LIBTRACKER_MINER_H_INSIDE__ | #undef __LIBTRACKER_MINER_H_INSIDE__ | |||
#endif /* __LIBTRACKER_MINER_H__ */ | #endif /* __LIBTRACKER_MINER_H__ */ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 4 lines changed or added | |||
tracker-xmp.h | tracker-xmp.h | |||
---|---|---|---|---|
skipping to change at line 32 | skipping to change at line 32 | |||
#define __LIBTRACKER_EXTRACT_XMP_H__ | #define __LIBTRACKER_EXTRACT_XMP_H__ | |||
#if !defined (__LIBTRACKER_EXTRACT_INSIDE__) && !defined (TRACKER_COMPILATI ON) | #if !defined (__LIBTRACKER_EXTRACT_INSIDE__) && !defined (TRACKER_COMPILATI ON) | |||
#error "only <libtracker-extract/tracker-extract.h> must be included direct ly." | #error "only <libtracker-extract/tracker-extract.h> must be included direct ly." | |||
#endif | #endif | |||
#include <libtracker-sparql/tracker-sparql.h> | #include <libtracker-sparql/tracker-sparql.h> | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
/** | ||||
* TrackerXmpData: | ||||
* @title: Value for the dc:title property. | ||||
* @rights: Value for the dc:rights property. | ||||
* @creator: Value for the dc:creator property. | ||||
* @description: Value for the dc:description property. | ||||
* @date: Value for the dc:date property. | ||||
* @keywords: Value for the dc:keywords property. | ||||
* @subject: Value for the dc:subject property. | ||||
* @publisher: Value for the dc:publisher property. | ||||
* @contributor: Value for the dc:contributor property. | ||||
* @type: Value for the dc:type property. | ||||
* @format: Value for the dc:format property. | ||||
* @identifier: Value for the dc:identifier property. | ||||
* @source: Value for the dc:source property. | ||||
* @language: Value for the dc:language property. | ||||
* @relation: Value for the dc:relation property. | ||||
* @coverage: Value for the dc:coverage property. | ||||
* @license: Value for the nie:license property. | ||||
* @pdf_title: Title of the PDF. | ||||
* @pdf_keywords: Keywords in the PDF. | ||||
* @title2: Title from the EXIF data. | ||||
* @time_original: Original time from the EXIF data. | ||||
* @artist: Artist from the EXIF data. | ||||
* @make: Make info from the EXIF data. | ||||
* @model: Model from the EXIF data. | ||||
* @orientation: Orientation info from the EXIF data. | ||||
* @flash: Flash info from the EXIF data. | ||||
* @metering_mode: Metering mode from the EXIF data. | ||||
* @exposure_time: Exposure time from the EXIF data. | ||||
* @fnumber: Focal ratio from the EXIF data. | ||||
* @focal_length: Focal length from the EXIF data. | ||||
* @iso_speed_ratings: ISO speed ratings from the EXIF data. | ||||
* @white_balance: White balance info from the EXIF data. | ||||
* @copyright: Copyright info from the EXIF data. | ||||
* @rating: Rating. | ||||
* @address: Address. | ||||
* @country: Country. | ||||
* @state: State. | ||||
* @city: City. | ||||
* @gps_altitude: GPS altitude. | ||||
* @gps_altitude_ref: GPS altitude reference. | ||||
* @gps_latitude: GPS latitude. | ||||
* @gps_longitude: GPS longitude. | ||||
* @gps_direction: GPS direction information. | ||||
* @regions: List of #TrackerXmpRegion items. | ||||
* | ||||
* Structure defining XMP data of a given file. | ||||
*/ | ||||
typedef struct { | typedef struct { | |||
/* NS_DC */ | /* NS_DC */ | |||
gchar *title; | gchar *title; | |||
gchar *rights; | gchar *rights; | |||
gchar *creator; | gchar *creator; | |||
gchar *description; | gchar *description; | |||
gchar *date; | gchar *date; | |||
gchar *keywords; | gchar *keywords; | |||
gchar *subject; | gchar *subject; | |||
gchar *publisher; | gchar *publisher; | |||
gchar *contributor; | gchar *contributor; | |||
gchar *type; | gchar *type; | |||
gchar *format; | gchar *format; | |||
gchar *identifier; | gchar *identifier; | |||
gchar *source; | gchar *source; | |||
gchar *language; | gchar *language; | |||
gchar *relation; | gchar *relation; | |||
gchar *coverage; | gchar *coverage; | |||
skipping to change at line 71 | skipping to change at line 119 | |||
gchar *time_original; | gchar *time_original; | |||
gchar *artist; | gchar *artist; | |||
gchar *make; | gchar *make; | |||
gchar *model; | gchar *model; | |||
gchar *orientation; | gchar *orientation; | |||
gchar *flash; | gchar *flash; | |||
gchar *metering_mode; | gchar *metering_mode; | |||
gchar *exposure_time; | gchar *exposure_time; | |||
gchar *fnumber; | gchar *fnumber; | |||
gchar *focal_length; | gchar *focal_length; | |||
gchar *iso_speed_ratings; | gchar *iso_speed_ratings; | |||
gchar *white_balance; | gchar *white_balance; | |||
gchar *copyright; | gchar *copyright; | |||
/* TODO NS_XAP*/ | /* TODO NS_XAP*/ | |||
gchar *rating; | gchar *rating; | |||
/* TODO NS_IPTC4XMP */ | /* TODO NS_IPTC4XMP */ | |||
/* TODO NS_PHOTOSHOP */ | /* TODO NS_PHOTOSHOP */ | |||
gchar *address; | gchar *address; | |||
skipping to change at line 94 | skipping to change at line 141 | |||
gchar *city; | gchar *city; | |||
/* ABI barrier (don't change things above this) */ | /* ABI barrier (don't change things above this) */ | |||
gchar *gps_altitude; | gchar *gps_altitude; | |||
gchar *gps_altitude_ref; | gchar *gps_altitude_ref; | |||
gchar *gps_latitude; | gchar *gps_latitude; | |||
gchar *gps_longitude; | gchar *gps_longitude; | |||
gchar *gps_direction; | gchar *gps_direction; | |||
/* List of TrackerXmpRegion */ | /* List of TrackerXmpRegion */ | |||
GSList *regions; | GSList *regions; | |||
} TrackerXmpData; | } TrackerXmpData; | |||
/** | ||||
* TrackerXmpRegion: | ||||
* @title: Title of the region. | ||||
* @description: Description of the region. | ||||
* @type: Type of the region. | ||||
* @x: X axis position. | ||||
* @y: Y axis position. | ||||
* @width: Width. | ||||
* @height: Height. | ||||
* @link_class: Link class. | ||||
* @link_uri: Link URI. | ||||
* | ||||
* Structure defining data of a given region in a #TrackerXmpData. | ||||
*/ | ||||
typedef struct { | typedef struct { | |||
gchar *title; | gchar *title; | |||
gchar *description; | gchar *description; | |||
gchar *type; | gchar *type; | |||
gchar *x; | gchar *x; | |||
gchar *y; | gchar *y; | |||
gchar *width; | gchar *width; | |||
gchar *height; | gchar *height; | |||
gchar *link_class; | gchar *link_class; | |||
gchar *link_uri; | gchar *link_uri; | |||
} TrackerXmpRegion; | } TrackerXmpRegion; | |||
TrackerXmpData *tracker_xmp_new (const gchar *buffer, | TrackerXmpData *tracker_xmp_new (const gchar *buffer, | |||
gsize len, | gsize len, | |||
const gchar *uri); | const gchar *uri); | |||
void tracker_xmp_free (TrackerXmpData *data); | void tracker_xmp_free (TrackerXmpData *data); | |||
gboolean tracker_xmp_apply (TrackerSparqlBuilder *preupdate, | gboolean tracker_xmp_apply (TrackerSparqlBuilder *preupdate, | |||
TrackerSparqlBuilder *metadata, | TrackerSparqlBuilder *metadata, | |||
const gchar *graph, | const gchar *graph, | |||
GString *where, | GString *where, | |||
End of changes. 6 change blocks. | ||||
12 lines changed or deleted | 73 lines changed or added | |||