X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=util.c;h=0cda59d4750d84d9cf407899d92da5705dc611bd;hb=HEAD;hp=0b246f5f43a1bca22767e7122697649b35c9b84d;hpb=50d8da5e24a18d9a70d09347bab7162803aee1e7;p=speedometer
diff --git a/util.c b/util.c
index 0b246f5..0cda59d 100644
--- a/util.c
+++ b/util.c
@@ -16,31 +16,35 @@
along with this program. If not, see .
****/
+#include
#include
#include
#include "util.h"
#include "appdata.h"
#include "callbacks.h"
+#include "ui.h"
-static LocationGPSDevice *device = NULL;
-static LocationGPSDControl *control = NULL;
+#ifdef __arm__
+ static LocationGPSDevice *device = NULL;
+ static LocationGPSDControl *control = NULL;
+#endif
-void start_gps(AppData* appdata) {
+void start_gps() {
#ifdef __arm__
if(!device) {
device = g_object_new(LOCATION_TYPE_GPS_DEVICE, NULL);
- g_signal_connect(device, "changed", G_CALLBACK(location_changed), appdata);
+ g_signal_connect(device, "changed", G_CALLBACK(location_changed), NULL);
}
control = location_gpsd_control_get_default();
location_gpsd_control_request_status(control);
if(control->can_control) {
location_gpsd_control_start(control);
- }
+ }
#endif // __arm__
}
-void stop_gps(AppData* appdata) {
+void stop_gps() {
#ifdef __arm__
control = location_gpsd_control_get_default();
location_gpsd_control_request_status(control);
@@ -50,3 +54,9 @@ void stop_gps(AppData* appdata) {
#endif // __arm__
}
+/* Loads the settings from GConf
+ *
+ */
+void load_settings() {
+
+}