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-gnome-clock.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/location-gnome-clock.h') diff --git a/src/location-gnome-clock.h b/src/location-gnome-clock.h index f3fc47d..052ce91 100644 --- a/src/location-gnome-clock.h +++ b/src/location-gnome-clock.h @@ -22,15 +22,21 @@ #include + typedef struct { float lat; float lon; } location_gnome_clock_state_t; -int location_gnome_clock_init(location_gnome_clock_state_t *state, char *args); +int location_gnome_clock_init(location_gnome_clock_state_t *state); +int location_gnome_clock_start(location_gnome_clock_state_t *state); void location_gnome_clock_free(location_gnome_clock_state_t *state); + void location_gnome_clock_print_help(FILE *f); +int location_gnome_clock_set_option(location_gnome_clock_state_t *state, + const char *key, const char *value); + int location_gnome_clock_get_location(location_gnome_clock_state_t *state, float *lat, float *lon); -- cgit v1.2.3-70-g09d2