diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2010-05-27 02:20:29 +0200 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2010-05-27 02:20:29 +0200 |
commit | 441dae4a44f60665c9f669a80304b688285c9c22 (patch) | |
tree | 572d08dfeeac1e2a4d737513d9e6c8daa4b0f343 /src/location-manual.h | |
parent | Let gamma methods and location providers print help on option parameters. (diff) | |
download | redshift-ng-441dae4a44f60665c9f669a80304b688285c9c22.tar.gz redshift-ng-441dae4a44f60665c9f669a80304b688285c9c22.tar.bz2 redshift-ng-441dae4a44f60665c9f669a80304b688285c9c22.tar.xz |
Split init function of methods and providers into init and start.
The set_option function can be called to set options between init
and start.
Diffstat (limited to 'src/location-manual.h')
-rw-r--r-- | src/location-manual.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/location-manual.h b/src/location-manual.h index 9c763ac..13c77da 100644 --- a/src/location-manual.h +++ b/src/location-manual.h @@ -20,6 +20,8 @@ #ifndef _REDSHIFT_LOCATION_MANUAL_H #define _REDSHIFT_LOCATION_MANUAL_H +#include <stdio.h> + typedef struct { float lat; @@ -27,9 +29,14 @@ typedef struct { } location_manual_state_t; -int location_manual_init(location_manual_state_t *state, char *args); +int location_manual_init(location_manual_state_t *state); +int location_manual_start(location_manual_state_t *state); void location_manual_free(location_manual_state_t *state); + 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); |