diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2010-05-25 00:45:29 +0200 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2010-05-25 00:45:29 +0200 |
commit | cde909747c1a237f5a1495a92ff3ba7675c64c99 (patch) | |
tree | 4122364a96340e252882b987412c9fd8ca61f992 /src/redshift.h | |
parent | Use the prefix 'gamma' for gamma adjustment source files. (diff) | |
download | redshift-ng-cde909747c1a237f5a1495a92ff3ba7675c64c99.tar.gz redshift-ng-cde909747c1a237f5a1495a92ff3ba7675c64c99.tar.bz2 redshift-ng-cde909747c1a237f5a1495a92ff3ba7675c64c99.tar.xz |
Provide fundament for more advanced location providers.
Diffstat (limited to 'src/redshift.h')
-rw-r--r-- | src/redshift.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/redshift.h b/src/redshift.h index 38e7f6b..1cb73f6 100644 --- a/src/redshift.h +++ b/src/redshift.h @@ -21,6 +21,7 @@ #define _REDSHIFT_REDSHIFT_H +/* Gamma adjustment method */ typedef int gamma_method_init_func(void *state, char *args); typedef void gamma_method_free_func(void *state); typedef void gamma_method_restore_func(void *state); @@ -36,4 +37,18 @@ typedef struct { } gamma_method_t; +/* Location provider */ +typedef int location_provider_init_func(void *state, char *args); +typedef void location_provider_free_func(void *state); +typedef int location_provider_get_location_func(void *state, float *lat, + float *lon); + +typedef struct { + char *name; + location_provider_init_func *init; + location_provider_free_func *free; + location_provider_get_location_func *get_location; +} location_provider_t; + + #endif /* ! _REDSHIFT_REDSHIFT_H */ |