Diff of /trunk/src/gpx.h

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

revision 1 by harbaum, Sat Jun 20 11:08:47 2009 UTC revision 204 by harbaum, Mon Nov 23 18:32:06 2009 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    typedef struct {
80      char *name;
81      unsigned int id;
82    } user_t;
83    
84  typedef struct tb {  typedef struct tb {
85    char *name;    char *name;
86    char *ref;    char *ref;
87      unsigned int id;
88    struct tb *next;    struct tb *next;
89  } tb_t;  } tb_t;
90    
91  typedef struct log {  typedef struct log {
92    int  day, month, year;    int  day, month, year;
93    int  type;    int  type;
94    char *finder;    user_t *finder;
95      unsigned int id;
96    char *text;    char *text;
97    
98    struct log *next;    struct log *next;
# Line 120  typedef struct cache { Line 126  typedef struct cache {
126    /* cache information */    /* cache information */
127    char *id;    char *id;
128    char *name;    char *name;
129    char *owner;  
130      user_t *owner;
131    
132    int  container;    int  container;
133    int  type;    int  type;
134    char *short_description, *long_description;    char *short_description, *long_description;
# Line 132  typedef struct cache { Line 140  typedef struct cache {
140    int logs_are_html;    int logs_are_html;
141    char *url;    char *url;
142    int available, archived;    int available, archived;
143      gboolean found;      /* determined by log */
144    
145    notes_t *notes;      /* user provides data. Doesn't come from gpx file */    notes_t *notes;      /* user provides data. Doesn't come from gpx file */
146    wpt_t *wpt;          /* pointer to list of waypoints */    wpt_t *wpt;          /* pointer to list of waypoints */
# Line 165  typedef struct { Line 174  typedef struct {
174  gpx_dialog_t *gpx_busy_dialog_new(GtkWidget *parent);  gpx_dialog_t *gpx_busy_dialog_new(GtkWidget *parent);
175  void gpx_busy_dialog_destroy(gpx_dialog_t *);  void gpx_busy_dialog_destroy(gpx_dialog_t *);
176    
177  gpx_t *gpx_parse(gpx_dialog_t *dialog, char *filename);  gpx_t *gpx_parse(gpx_dialog_t *dialog, char *filename, char *username);
178  gpx_t *gpx_parse_dir(gpx_dialog_t *dialog, char *dirname);  gpx_t *gpx_parse_dir(gpx_dialog_t *dialog, char *dirname, char *username);
179  void  gpx_free(gpx_t *gpx);  void  gpx_free(gpx_t *gpx);
180  void  gpx_free_all(gpx_t *gpx);  void  gpx_free_all(gpx_t *gpx);
181  void gpx_free_caches(gpx_t *gpx);  void gpx_free_caches(gpx_t *gpx);
182  void  gpx_display_all(gpx_t *gpx);  void  gpx_display_all(gpx_t *gpx);
183  int   gpx_total_caches(gpx_t *gpx);  int   gpx_total_caches(gpx_t *gpx);
184    int   gpx_total_caches_global(gpx_t *gpx);
185  void  gpx_sort(gpx_t *gpx, int by, pos_t *refpos);  void  gpx_sort(gpx_t *gpx, int by, pos_t *refpos);
186  float gpx_pos_get_bearing(pos_t p1, pos_t p2);  float gpx_pos_get_bearing(pos_t p1, pos_t p2);
187  float gpx_pos_get_distance(pos_t p1, pos_t p2, int miles);  float gpx_pos_get_distance(pos_t p1, pos_t p2, int miles);

Legend:
Removed from v.1  
changed lines
  Added in v.204