From 799b08214dffc3c86e30c4547acd9015078a18ac Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Wed, 31 Dec 2014 00:11:24 -0500 Subject: Add location_t type with lat/lon fields --- src/location-corelocation.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/location-corelocation.m') diff --git a/src/location-corelocation.m b/src/location-corelocation.m index edf3e45..2f1768d 100644 --- a/src/location-corelocation.m +++ b/src/location-corelocation.m @@ -25,6 +25,7 @@ #import #include "location-corelocation.h" +#include "redshift.h" #include @@ -143,7 +144,7 @@ location_corelocation_set_option(void *state, int location_corelocation_get_location(void *state, - float *lat, float *lon) + location_t *location) { int result = -1; @@ -153,8 +154,8 @@ location_corelocation_get_location(void *state, CFRunLoopRun(); if (delegate.success) { - *lat = delegate.latitude; - *lon = delegate.longitude; + location->lat = delegate.latitude; + location->lon = delegate.longitude; result = 0; } } -- cgit v1.2.3-70-g09d2