aboutsummaryrefslogtreecommitdiffstats
path: root/src/redshift.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/redshift.h')
-rw-r--r--src/redshift.h15
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 */