Diff of /trunk/src/gpx.h

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

revision 205 by harbaum, Mon Nov 23 20:12:22 2009 UTC revision 293 by harbaum, Tue Aug 17 19:00:06 2010 UTC
# Line 76  Line 76 
76  #define LOG_TYPE_ARCHIVE              15  #define LOG_TYPE_ARCHIVE              15
77  #define LOG_TYPE_MAX                  (LOG_TYPE_ARCHIVE)  #define LOG_TYPE_MAX                  (LOG_TYPE_ARCHIVE)
78    
79    // gpx 1.0.1 attributes
80    #define ATT_UNKNOWN             0
81    #define ATT_DOGS                1
82    #define ATT_FEE                 2
83    #define ATT_RAPPELLING          3
84    #define ATT_BOAT                4
85    #define ATT_SCUBA               5
86    #define ATT_KIDS                6
87    #define ATT_ONEHOUR             7
88    #define ATT_SCENIC              8
89    #define ATT_HIKING              9
90    #define ATT_CLIMBING           10
91    #define ATT_WADING             11
92    #define ATT_SWIMMING           12
93    #define ATT_AVAILABLE          13
94    #define ATT_NIGHT              14
95    #define ATT_WINTER             15
96    #define ATT_UNKNOWN0           16  // <-- ???
97    #define ATT_POISONOAK          17
98    #define ATT_SNAKES             18
99    #define ATT_TICKS              19
100    #define ATT_MINE               20
101    #define ATT_CLIFF              21
102    #define ATT_HUNTING            22
103    #define ATT_DANGER             23
104    #define ATT_WHEELCHAIR         24
105    #define ATT_PARKING            25
106    #define ATT_PUBLIC             26
107    #define ATT_WATER              27
108    #define ATT_RESTROOMS          28
109    #define ATT_PHONE              29
110    #define ATT_PICNIC             30
111    #define ATT_CAMPING            31
112    #define ATT_BICYCLES           32
113    #define ATT_MOTORCYCLES        33
114    #define ATT_QUADS              34
115    #define ATT_JEEPS              35
116    #define ATT_SNOWMOBILES        36
117    #define ATT_HORSES             37
118    #define ATT_CAMPFIRES          38
119    #define ATT_THORN              39
120    #define ATT_STEALTH            40
121    #define ATT_STROLLER           41
122    #define ATT_FIRSTAID           42
123    #define ATT_COW                43
124    #define ATT_FLASHLIGHT         44
125    #define ATT_MAX                (ATT_FLASHLIGHT)
126    
127    // august 2010 attributes
128    #define ATT_LANDF              45
129    #define ATT_UNKNOWN1           46  // <-- ???
130    #define ATT_FIELD_PUZZLE       47
131    #define ATT_UV                 48
132    #define ATT_SNOWSHOES          49
133    #define ATT_SKIIS              50
134    #define ATT_S_TOOL             51
135    #define ATT_NIGHTCACHE         52
136    #define ATT_PARKNGRAB          53
137    #define ATT_ABANDONEDBUILDING  54
138    #define ATT_HIKE_SHORT         55
139    #define ATT_HIKE_MED           56
140    #define ATT_HIKE_LONG          57
141    #define ATT_FUEL               58
142    #define ATT_FOOD               59
143    
144    typedef struct attribute {
145      char *name;
146      unsigned int id;
147      gboolean inc;
148      struct attribute *next;
149    } attribute_t;
150    
151  typedef struct {  typedef struct {
152    char *name;    char *name;
153    unsigned int id;    unsigned int id;
# Line 143  typedef struct cache { Line 215  typedef struct cache {
215    gboolean found;      /* determined by log */    gboolean found;      /* determined by log */
216    gboolean mine;    gboolean mine;
217    
218    notes_t *notes;      /* user provides data. Doesn't come from gpx file */    notes_t *notes;           /* user provides data. Doesn't come from gpx file */
219    wpt_t *wpt;          /* pointer to list of waypoints */    wpt_t *wpt;               /* pointer to list of waypoints */
220    log_t *log;          /* pointer to list of logs */    log_t *log;               /* pointer to list of logs */
221    tb_t *tb;            /* pointer to list of travelbugs */    tb_t *tb;                 /* pointer to list of travelbugs */
222    struct cache *next;  /* pointer to next cache in list */    attribute_t *attribute;   /* pointer to list of attributes */
223      struct cache *next;       /* pointer to next cache in list */
224  } cache_t;  } cache_t;
225    
226  typedef struct gpx {  typedef struct gpx {

Legend:
Removed from v.205  
changed lines
  Added in v.293