twinaphex
26ab324727
(OSX 10.6) Fix declaration shadows global variable warnings
2015-01-15 21:10:36 +01:00
twinaphex
6cdaa4e282
(MSVC) Build fixes
2015-01-12 22:47:12 +01:00
twinaphex
1b28a4a498
Cleanups
2015-01-12 21:16:17 +01:00
twinaphex
c4bf097d7f
Move location_driver.c to location/
2015-01-12 19:53:10 +01:00
twinaphex
6a9d24b10a
Move location drivers to location/drivers/
2015-01-12 19:05:33 +01:00
twinaphex
453321c50b
Start updating headers
2015-01-07 17:46:50 +01:00
twinaphex
8f095df694
Minor cleanup in location/android.c
2014-10-27 04:05:51 +01:00
twinaphex
75d2e13dcb
Make drivers non-const
2014-09-11 07:06:20 +02:00
twinaphex
fe510bca6f
Indenting/C-style comments
2014-09-08 17:57:18 +02:00
Lioncash
195a6aadb2
nulllocation: Remove nulllocation_t.
...
This is technically not even allowed according to the C standard, but is a GNU-specific extension
2014-09-06 00:47:59 -04:00
twinaphex
f9c0f5ac64
(Camera/Location stub drivers) Changes
...
(General) Fix some potential uninitialized variables
2014-08-17 06:09:23 +02:00
twinaphex
c38f5a813c
(Location) null_location_get_position - return false
2014-08-15 21:19:59 +02:00
twinaphex
88af50ab82
Add null drivers
2014-08-14 03:05:44 +02:00
twinaphex
027bd68bb3
Add location/null.c - get rid of HAVE_LOCATION ifdefs
2014-08-14 02:15:48 +02:00
twinaphex
8193eb4b3d
(Android) Input - Move files around
2014-06-10 22:15:23 +02:00
twinaphex
0a15a17d44
Update years on all license headers
2014-01-01 01:50:59 +01:00
twinaphex
491c0e0757
(Android location) Fixup prototype for onLocationGetHorizontalAccuracy in JNI stub driver
2013-12-21 15:11:11 +01:00
twinaphex
d43c971a1e
(Android Location) Fix init function
2013-12-20 17:10:35 +01:00
twinaphex
792b27288a
(Android) (Location) Function signatures for functions that return
...
double were wrong - should be D instead of J
2013-12-20 00:42:42 +01:00
twinaphex
da6e360e49
(Location) Implement horizontal and vertical accuracy - Android's
...
location API only provides horizontal API but iOS/OSX API supports
both horizontal and vertical. Maybe consider implementing vertical
accuracy for Android by hand later
2013-12-19 17:36:27 +01:00
twinaphex
f0aa0f99fd
(Location) Reimplement some parts of the location interface - get_latitude
...
and get_longitude are gone now in place of get_position. Basically,
from C land we basically do a poll-style queries, but on the
implementation side (ie. Android/iOS/OSX) - they all use callback-based
location updates. So we simply check in the poll function (get_position)
whether position has changed, and if so, update the pointer values and
return true - if not, set them to 0 and return false.
2013-12-19 15:47:47 +01:00
Themaister
855cb54def
Some cleanups to location interface.
...
Avoid three redundant fields in struct.
Use unsigned instead of int for argument for API consistency.
2013-12-19 10:15:55 +01:00
twinaphex
d974216890
(Android) Add -DHAVE_LOCATION
2013-12-19 05:16:48 +01:00
twinaphex
9ed2c1b9b6
(Android location) Implement all JNI calls in stub location driver -
...
hopefully this will work straight away (fingers crossed)
2013-12-19 05:10:56 +01:00
twinaphex
e983aa4c35
(Location) Implement stub Android location driver - will still need
...
a couple of functions filled in
2013-12-19 03:37:26 +01:00