Initial commit, partially working
[wai] / src / app_data.h
diff --git a/src/app_data.h b/src/app_data.h
new file mode 100644 (file)
index 0000000..e3d7757
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef APP_DATA_H_
+#define APP_DATA_H_
+
+#include <hildon/hildon-program.h>
+#include "interface.h"
+#include <location/location-gps-device.h>
+#include <location/location-gpsd-control.h>
+
+typedef struct
+{
+    HildonProgram *program;
+    gboolean      fullscreen;
+    gboolean       portrait;
+    UserInterface  *main_ui;
+    LocationGPSDControl *control;
+    LocationGPSDevice *device;
+} AppData;
+
+void app_data_init(void);
+AppData* app_data_get(void);
+void app_data_free(void);
+
+#endif /*APP_DATA_H_*/