From cde909747c1a237f5a1495a92ff3ba7675c64c99 Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Tue, 25 May 2010 00:45:29 +0200 Subject: Provide fundament for more advanced location providers. --- src/redshift.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/redshift.h') 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 */ -- cgit v1.2.3-70-g09d2