aboutsummaryrefslogtreecommitdiffstats
path: root/src/redshift.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/redshift.h10
1 files changed, 7 insertions, 3 deletions
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 <stdlib.h>
+/* 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;