From 441dae4a44f60665c9f669a80304b688285c9c22 Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Thu, 27 May 2010 02:20:29 +0200 Subject: 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. --- src/location-manual.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/location-manual.h') 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 + 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); -- cgit v1.2.3-70-g09d2