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-manual.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/location-manual.h') diff --git a/src/location-manual.h b/src/location-manual.h index e70d9cf..7094e9a 100644 --- a/src/location-manual.h +++ b/src/location-manual.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) 2010-2014 Jon Lund Steffensen + Copyright (c) 2010-2017 Jon Lund Steffensen */ #ifndef REDSHIFT_LOCATION_MANUAL_H @@ -38,8 +38,9 @@ void location_manual_print_help(FILE *f); int location_manual_set_option(location_manual_state_t *state, const char *key, const char *value); -int location_manual_get_location(location_manual_state_t *state, - location_t *loc); +int location_manual_get_fd(location_manual_state_t *state); +int location_manual_handle( + location_manual_state_t *state, location_t *location, int *available); #endif /* ! REDSHIFT_LOCATION_MANUAL_H */ -- cgit v1.2.3-70-g09d2