From 799b08214dffc3c86e30c4547acd9015078a18ac Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Wed, 31 Dec 2014 00:11:24 -0500 Subject: Add location_t type with lat/lon fields --- src/redshift.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/redshift.h') diff --git a/src/redshift.h b/src/redshift.h index 5f4335c..bac8e34 100644 --- a/src/redshift.h +++ b/src/redshift.h @@ -24,6 +24,12 @@ #include +/* Location */ +typedef struct { + float lat; + float lon; +} location_t; + /* Periods of day. */ typedef enum { PERIOD_NONE = 0, @@ -32,7 +38,6 @@ typedef enum { PERIOD_TRANSITION } period_t; - /* Color setting */ typedef struct { int temperature; @@ -84,8 +89,7 @@ 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, float *lat, - float *lon); +typedef int location_provider_get_location_func(void *state, location_t *loc); typedef struct { char *name; -- cgit v1.2.3-70-g09d2