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; |
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; |
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 */ |
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); |