From a8fb488ac1af2aced6d598b480786b833f52995d Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Mon, 15 Feb 2016 12:42:22 +0100 Subject: [PATCH 2/3] Expose the location's timestamp https://bugs.freedesktop.org/show_bug.cgi?id=94157 --- docs/lib/libgeoclue-sections.txt | 2 ++ src/gclue-service-location.c | 5 ++++- src/org.freedesktop.GeoClue2.Location.xml | 15 +++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/lib/libgeoclue-sections.txt b/docs/lib/libgeoclue-sections.txt index 8d21a10..a496134 100644 --- a/docs/lib/libgeoclue-sections.txt +++ b/docs/lib/libgeoclue-sections.txt @@ -129,6 +129,8 @@ gclue_location_set_heading gclue_location_get_description gclue_location_dup_description gclue_location_set_description +gclue_location_get_timestamp +gclue_location_set_timestamp GCLUE_IS_LOCATION GCLUE_LOCATION diff --git a/src/gclue-service-location.c b/src/gclue-service-location.c index 2a7b126..ab77d75 100644 --- a/src/gclue-service-location.c +++ b/src/gclue-service-location.c @@ -99,7 +99,8 @@ gclue_service_location_get_property (GObject *object, "description", gclue_dbus_location_get_description (location), "speed", gclue_dbus_location_get_speed (location), "heading", gclue_dbus_location_get_heading (location), - "altitude", gclue_dbus_location_get_altitude (location)); + "altitude", gclue_dbus_location_get_altitude (location), + "timestamp", gclue_dbus_location_get_timestamp (location)); g_value_take_object (value, loc); break; @@ -153,6 +154,8 @@ gclue_service_location_set_property (GObject *object, (location, gclue_location_get_speed (loc)); gclue_dbus_location_set_heading (location, gclue_location_get_heading (loc)); + gclue_dbus_location_set_timestamp + (location, geocode_location_get_timestamp (g_loc)); altitude = geocode_location_get_altitude (g_loc); if (altitude != GEOCODE_LOCATION_ALTITUDE_UNKNOWN) gclue_dbus_location_set_altitude (location, altitude); diff --git a/src/org.freedesktop.GeoClue2.Location.xml b/src/org.freedesktop.GeoClue2.Location.xml index fd53c79..6921019 100644 --- a/src/org.freedesktop.GeoClue2.Location.xml +++ b/src/org.freedesktop.GeoClue2.Location.xml @@ -74,5 +74,20 @@ geocode-glib. --> + + + + -- 2.7.0