From 799b08214dffc3c86e30c4547acd9015078a18ac Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen <jonlst@gmail.com> Date: Wed, 31 Dec 2014 00:11:24 -0500 Subject: Add location_t type with lat/lon fields --- src/location-manual.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/location-manual.h') diff --git a/src/location-manual.h b/src/location-manual.h index 389294d..e70d9cf 100644 --- a/src/location-manual.h +++ b/src/location-manual.h @@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License along with Redshift. If not, see <http://www.gnu.org/licenses/>. - Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com> + Copyright (c) 2010-2014 Jon Lund Steffensen <jonlst@gmail.com> */ #ifndef REDSHIFT_LOCATION_MANUAL_H @@ -22,10 +22,11 @@ #include <stdio.h> +#include "redshift.h" + typedef struct { - float lat; - float lon; + location_t loc; } location_manual_state_t; @@ -37,8 +38,8 @@ void location_manual_print_help(FILE *f); int location_manual_set_option(location_manual_state_t *state, const char *key, const char *value); -int location_manual_get_location(location_manual_state_t *state, float *lat, - float *lon); +int location_manual_get_location(location_manual_state_t *state, + location_t *loc); #endif /* ! REDSHIFT_LOCATION_MANUAL_H */ -- cgit v1.2.3-70-g09d2