diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-31 00:11:24 -0500 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2015-01-04 16:32:47 -0500 |
commit | 799b08214dffc3c86e30c4547acd9015078a18ac (patch) | |
tree | fd01ab4421eee6bff66495431de5fb00b047245b /src/location-geoclue.c | |
parent | Merge changes from 1.10 release branch (diff) | |
download | redshift-ng-799b08214dffc3c86e30c4547acd9015078a18ac.tar.gz redshift-ng-799b08214dffc3c86e30c4547acd9015078a18ac.tar.bz2 redshift-ng-799b08214dffc3c86e30c4547acd9015078a18ac.tar.xz |
Add location_t type with lat/lon fields
Diffstat (limited to 'src/location-geoclue.c')
-rw-r--r-- | src/location-geoclue.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/location-geoclue.c b/src/location-geoclue.c index 378b933..b2616bf 100644 --- a/src/location-geoclue.c +++ b/src/location-geoclue.c @@ -28,6 +28,7 @@ #include <glib-object.h> #include "location-geoclue.h" +#include "redshift.h" #ifdef ENABLE_NLS # include <libintl.h> @@ -185,7 +186,7 @@ location_geoclue_set_option(location_geoclue_state_t *state, int location_geoclue_get_location(location_geoclue_state_t *state, - float *lat, float *lon) + location_t *location) { GeocluePositionFields fields; GError *error = NULL; @@ -210,8 +211,8 @@ location_geoclue_get_location(location_geoclue_state_t *state, return -1; } - *lat = latitude; - *lon = longitude; + location->lat = latitude; + location->lon = longitude; return 0; } |