aboutsummaryrefslogtreecommitdiffstats
path: root/src/location-manual.h
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2014-12-31 00:11:24 -0500
committerJon Lund Steffensen <jonlst@gmail.com>2015-01-04 16:32:47 -0500
commit799b08214dffc3c86e30c4547acd9015078a18ac (patch)
treefd01ab4421eee6bff66495431de5fb00b047245b /src/location-manual.h
parentMerge changes from 1.10 release branch (diff)
downloadredshift-ng-799b08214dffc3c86e30c4547acd9015078a18ac.tar.gz
redshift-ng-799b08214dffc3c86e30c4547acd9015078a18ac.tar.bz2
redshift-ng-799b08214dffc3c86e30c4547acd9015078a18ac.tar.xz
Add location_t type with lat/lon fields
Diffstat (limited to 'src/location-manual.h')
-rw-r--r--src/location-manual.h11
1 files changed, 6 insertions, 5 deletions
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 */