[tracker/writeback-miner-interaction-0.10: 10/14] tracker-extract, jpeg: Fix indentation issues
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/writeback-miner-interaction-0.10: 10/14] tracker-extract, jpeg: Fix indentation issues
- Date: Wed, 8 Jun 2011 10:05:54 +0000 (UTC)
commit 21f0b6c1ed8f6a3f182af282ce3b2133574fd34f
Author: Philip Van Hoof <philip codeminded be>
Date: Tue Jun 7 14:55:28 2011 +0200
tracker-extract, jpeg: Fix indentation issues
src/tracker-extract/tracker-extract-jpeg.c | 43 ++++++++++++++-------------
1 files changed, 22 insertions(+), 21 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-jpeg.c b/src/tracker-extract/tracker-extract-jpeg.c
index fc93e4d..7ae340d 100644
--- a/src/tracker-extract/tracker-extract-jpeg.c
+++ b/src/tracker-extract/tracker-extract-jpeg.c
@@ -75,9 +75,9 @@ typedef struct {
const gchar *state;
const gchar *address;
const gchar *country;
- const gchar *gps_altitude;
- const gchar *gps_latitude;
- const gchar *gps_longitude;
+ const gchar *gps_altitude;
+ const gchar *gps_latitude;
+ const gchar *gps_longitude;
} MergeData;
static void extract_jpeg (const gchar *filename,
@@ -255,7 +255,8 @@ extract_jpeg (const gchar *uri,
md.state = tracker_coalesce_strip (2, xd->state, id->state);
md.address = tracker_coalesce_strip (2, xd->address, id->sublocation);
md.country = tracker_coalesce_strip (2, xd->country, id->country_name);
- /* FIXME We are not handling the altitude ref here for xmp */
+
+ /* FIXME We are not handling the altitude ref here for xmp */
md.gps_altitude = tracker_coalesce_strip (2, xd->gps_altitude, ed->gps_altitude);
md.gps_latitude = tracker_coalesce_strip (2, xd->gps_latitude, ed->gps_latitude);
md.gps_longitude = tracker_coalesce_strip (2, xd->gps_longitude, ed->gps_longitude);
@@ -570,38 +571,38 @@ extract_jpeg (const gchar *uri,
tracker_sparql_builder_object (metadata, "slo:GeoLocation");
if (md.address || md.state || md.country || md.city) {
- gchar *addruri;
+ gchar *addruri;
- addruri = tracker_sparql_get_uuid_urn ();
+ addruri = tracker_sparql_get_uuid_urn ();
- tracker_sparql_builder_predicate (metadata, "slo:postalAddress");
- tracker_sparql_builder_object_iri (metadata, addruri);
+ tracker_sparql_builder_predicate (metadata, "slo:postalAddress");
+ tracker_sparql_builder_object_iri (metadata, addruri);
- tracker_sparql_builder_insert_open (preupdate, NULL);
- tracker_sparql_builder_subject_iri (preupdate, addruri);
+ tracker_sparql_builder_insert_open (preupdate, NULL);
+ tracker_sparql_builder_subject_iri (preupdate, addruri);
- g_free (addruri);
+ g_free (addruri);
- tracker_sparql_builder_predicate (preupdate, "a");
- tracker_sparql_builder_object (preupdate, "nco:PostalAddress");
+ tracker_sparql_builder_predicate (preupdate, "a");
+ tracker_sparql_builder_object (preupdate, "nco:PostalAddress");
if (md.address) {
- tracker_sparql_builder_predicate (preupdate, "nco:streetAddress");
- tracker_sparql_builder_object_unvalidated (preupdate, md.address);
+ tracker_sparql_builder_predicate (preupdate, "nco:streetAddress");
+ tracker_sparql_builder_object_unvalidated (preupdate, md.address);
}
if (md.state) {
- tracker_sparql_builder_predicate (preupdate, "nco:region");
+ tracker_sparql_builder_predicate (preupdate, "nco:region");
tracker_sparql_builder_object_unvalidated (preupdate, md.state);
}
if (md.city) {
- tracker_sparql_builder_predicate (preupdate, "nco:locality");
+ tracker_sparql_builder_predicate (preupdate, "nco:locality");
tracker_sparql_builder_object_unvalidated (preupdate, md.city);
}
if (md.country) {
- tracker_sparql_builder_predicate (preupdate, "nco:country");
+ tracker_sparql_builder_predicate (preupdate, "nco:country");
tracker_sparql_builder_object_unvalidated (preupdate, md.country);
}
@@ -609,17 +610,17 @@ extract_jpeg (const gchar *uri,
}
if (md.gps_altitude) {
- tracker_sparql_builder_predicate (metadata, "slo:altitude");
+ tracker_sparql_builder_predicate (metadata, "slo:altitude");
tracker_sparql_builder_object_unvalidated (metadata, md.gps_altitude);
}
if (md.gps_latitude) {
- tracker_sparql_builder_predicate (metadata, "slo:latitude");
+ tracker_sparql_builder_predicate (metadata, "slo:latitude");
tracker_sparql_builder_object_unvalidated (metadata, md.gps_latitude);
}
if (md.gps_longitude) {
- tracker_sparql_builder_predicate (metadata, "slo:longitude");
+ tracker_sparql_builder_predicate (metadata, "slo:longitude");
tracker_sparql_builder_object_unvalidated (metadata, md.gps_longitude);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]