aboutsummaryrefslogtreecommitdiffstats
path: root/src/location-corelocation.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/location-corelocation.m')
-rw-r--r--src/location-corelocation.m7
1 files changed, 4 insertions, 3 deletions
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 <CoreLocation/CoreLocation.h>
#include "location-corelocation.h"
+#include "redshift.h"
#include <stdio.h>
@@ -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;
}
}