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-geoclue2.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/location-geoclue2.h') diff --git a/src/location-geoclue2.h b/src/location-geoclue2.h index c3c377b..095d86f 100644 --- a/src/location-geoclue2.h +++ b/src/location-geoclue2.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 Steffensen + Copyright (c) 2014-2017 Jon Lund Steffensen */ #ifndef REDSHIFT_LOCATION_GEOCLUE2_H @@ -33,8 +33,9 @@ void location_geoclue2_print_help(FILE *f); int location_geoclue2_set_option(void *state, const char *key, const char *value); -int location_geoclue2_get_location(void *state, - location_t *loc); +int location_geoclue2_get_fd(void *state); +int location_geoclue2_handle(void *state, + location_t *location, int *available); #endif /* ! REDSHIFT_LOCATION_GEOCLUE2_H */ -- cgit v1.2.3-70-g09d2