Diff of /trunk/src/gpx.h

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

revision 133 by harbaum, Mon Oct 12 20:27:55 2009 UTC revision 205 by harbaum, Mon Nov 23 20:12:22 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;
# Line 87  typedef struct tb { Line 91  typedef struct tb {
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 121  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 133  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      gboolean mine;
145    
146    notes_t *notes;      /* user provides data. Doesn't come from gpx file */    notes_t *notes;      /* user provides data. Doesn't come from gpx file */
147    wpt_t *wpt;          /* pointer to list of waypoints */    wpt_t *wpt;          /* pointer to list of waypoints */
# Line 166  typedef struct { Line 175  typedef struct {
175  gpx_dialog_t *gpx_busy_dialog_new(GtkWidget *parent);  gpx_dialog_t *gpx_busy_dialog_new(GtkWidget *parent);
176  void gpx_busy_dialog_destroy(gpx_dialog_t *);  void gpx_busy_dialog_destroy(gpx_dialog_t *);
177    
178  gpx_t *gpx_parse(gpx_dialog_t *dialog, char *filename);  gpx_t *gpx_parse(gpx_dialog_t *dialog, char *filename, char *username);
179  gpx_t *gpx_parse_dir(gpx_dialog_t *dialog, char *dirname);  gpx_t *gpx_parse_dir(gpx_dialog_t *dialog, char *dirname, char *username);
180  void  gpx_free(gpx_t *gpx);  void  gpx_free(gpx_t *gpx);
181  void  gpx_free_all(gpx_t *gpx);  void  gpx_free_all(gpx_t *gpx);
182  void gpx_free_caches(gpx_t *gpx);  void gpx_free_caches(gpx_t *gpx);
183  void  gpx_display_all(gpx_t *gpx);  void  gpx_display_all(gpx_t *gpx);
184  int   gpx_total_caches(gpx_t *gpx);  int   gpx_total_caches(gpx_t *gpx);
185    int   gpx_total_caches_global(gpx_t *gpx);
186  void  gpx_sort(gpx_t *gpx, int by, pos_t *refpos);  void  gpx_sort(gpx_t *gpx, int by, pos_t *refpos);
187  float gpx_pos_get_bearing(pos_t p1, pos_t p2);  float gpx_pos_get_bearing(pos_t p1, pos_t p2);
188  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.133  
changed lines
  Added in v.205