diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2017-08-19 11:56:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-19 11:56:11 -0700 |
commit | 71e1de2d33f0c9d57da82f1291ed728b8dbff09f (patch) | |
tree | 0e76ea1834bc423e4376bc8e112d9c85213ed91f /src/redshift.h | |
parent | Merge pull request #498 from jonls/osx-travis (diff) | |
parent | Appveyor, Travis: Test run redshift after build (diff) | |
download | redshift-ng-71e1de2d33f0c9d57da82f1291ed728b8dbff09f.tar.gz redshift-ng-71e1de2d33f0c9d57da82f1291ed728b8dbff09f.tar.bz2 redshift-ng-71e1de2d33f0c9d57da82f1291ed728b8dbff09f.tar.xz |
Merge pull request #500 from jonls/continuous-location
Continuous location updates
Diffstat (limited to 'src/redshift.h')
-rw-r--r-- | src/redshift.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/redshift.h b/src/redshift.h index bac8e34..c659502 100644 --- a/src/redshift.h +++ b/src/redshift.h @@ -89,7 +89,9 @@ typedef void location_provider_free_func(void *state); typedef void location_provider_print_help_func(FILE *f); typedef int location_provider_set_option_func(void *state, const char *key, const char *value); -typedef int location_provider_get_location_func(void *state, location_t *loc); +typedef int location_provider_get_fd_func(void *state); +typedef int location_provider_handle_func( + void *state, location_t *location, int *available); typedef struct { char *name; @@ -106,8 +108,9 @@ typedef struct { /* Set an option key, value-pair. */ location_provider_set_option_func *set_option; - /* Get current location. */ - location_provider_get_location_func *get_location; + /* Listen and handle location updates. */ + location_provider_get_fd_func *get_fd; + location_provider_handle_func *handle; } location_provider_t; |