From 153dec0e21530d52b8ee82f6ec588620ec0857d2 Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Wed, 16 Aug 2017 21:20:06 -0700 Subject: Change location providers to allow updates Change location provider implementations so it is possible for location providers to dynamically update the location. This commit adds the interfaces and infrastructure in redshift.c but none of the location provides are changed to become dynamic. --- src/location-corelocation.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/location-corelocation.h') diff --git a/src/location-corelocation.h b/src/location-corelocation.h index 4b74382..9c276e9 100644 --- a/src/location-corelocation.h +++ b/src/location-corelocation.h @@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License along with Redshift. If not, see . - Copyright (c) 2014 Jon Lund Steffense + Copyright (c) 2014-2017 Jon Lund Steffense */ #ifndef REDSHIFT_LOCATION_CORELOCATION_H @@ -33,8 +33,9 @@ void location_corelocation_print_help(FILE *f); int location_corelocation_set_option(void *state, const char *key, const char *value); -int location_corelocation_get_location(void *state, - location_t *location); +int location_corelocation_get_fd(void *state); +int location_corelocation_handle( + void *state, location_t *location, int *available); #endif /* ! REDSHIFT_LOCATION_CORELOCATION_H */ -- cgit v1.2.3-70-g09d2