X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/a25c4c508425a98c4aba9b5d72c6e57c985f9da2..70177381ae2b6540e92c504833aeb546c38dd54b:/src/vikwaypoint.h diff --git a/src/vikwaypoint.h b/src/vikwaypoint.h index 3c57de97..d7cac9f4 100644 --- a/src/vikwaypoint.h +++ b/src/vikwaypoint.h @@ -24,6 +24,9 @@ #include "vikcoord.h" +#include + +G_BEGIN_DECLS /* todo important: put these in their own header file, maybe.probably also rename */ #define VIK_WAYPOINT(x) ((VikWaypoint *)(x)) @@ -33,8 +36,13 @@ typedef struct _VikWaypoint VikWaypoint; struct _VikWaypoint { VikCoord coord; gboolean visible; + gboolean has_timestamp; + time_t timestamp; gdouble altitude; + gchar *name; gchar *comment; + gchar *description; + gchar *url; gchar *image; /* a rather misleading, ugly hack needed for trwlayer's click image. * these are the height at which the thumbnail is being drawn, not the @@ -42,16 +50,24 @@ struct _VikWaypoint { guint8 image_width; guint8 image_height; gchar *symbol; + // Only for GUI display + GdkPixbuf *symbol_pixbuf; }; VikWaypoint *vik_waypoint_new(); +void vik_waypoint_set_name(VikWaypoint *wp, const gchar *name); void vik_waypoint_set_comment(VikWaypoint *wp, const gchar *comment); +void vik_waypoint_set_description(VikWaypoint *wp, const gchar *description); +void vik_waypoint_set_url(VikWaypoint *wp, const gchar *url); void vik_waypoint_set_image(VikWaypoint *wp, const gchar *image); void vik_waypoint_set_symbol(VikWaypoint *wp, const gchar *symname); void vik_waypoint_free(VikWaypoint * wp); VikWaypoint *vik_waypoint_copy(const VikWaypoint *wp); void vik_waypoint_set_comment_no_copy(VikWaypoint *wp, gchar *comment); +gboolean vik_waypoint_apply_dem_data ( VikWaypoint *wp, gboolean skip_existing ); void vik_waypoint_marshall ( VikWaypoint *wp, guint8 **data, guint *len); VikWaypoint *vik_waypoint_unmarshall (guint8 *data, guint datalen); +G_END_DECLS + #endif