Diff of /trunk/src/map-tool.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 128 by harbaum, Fri Aug 28 12:07:16 2009 UTC revision 129 by harbaum, Tue Sep 29 14:30:16 2009 UTC
# Line 20  Line 20 
20  #ifndef MAP_TOOL_H  #ifndef MAP_TOOL_H
21  #define MAP_TOOL_H  #define MAP_TOOL_H
22    
23    typedef enum { MAP_NONE=0, MAP_ALL, MAP_GPX, MAP_CACHE } map_state_t;
24    
25  typedef struct map_context_s {  typedef struct map_context_s {
26    appdata_t *appdata;    appdata_t *appdata;
27    GtkWidget *window;    GtkWidget *window;
# Line 27  typedef struct map_context_s { Line 29  typedef struct map_context_s {
29    gint handler_id;    gint handler_id;
30    cache_t *press_on;    cache_t *press_on;
31    gboolean map_complete;    gboolean map_complete;
32    
33      map_state_t state;
34      union {
35        gpx_t *gpx;   // list of gpx files or only single one (cachelist)
36        cache_t *cache;
37      };
38    
39  #if MAEMO_VERSION_MAJOR == 5  #if MAEMO_VERSION_MAJOR == 5
40    GtkWidget *old_view;    GtkWidget *old_view;
41  #endif  #endif
# Line 34  typedef struct map_context_s { Line 43  typedef struct map_context_s {
43    
44    
45  extern void map(appdata_t *appdata);  extern void map(appdata_t *appdata);
46    extern void map_update(appdata_t *appdata);
47    
48  #endif // MAP_TOOL_H  #endif // MAP_TOOL_H

Legend:
Removed from v.128  
changed lines
  Added in v.129