return store;
}
+
+void
+position_set(Position *pos, gboolean valid, gdouble lat, gdouble lon)
+{
+pos->valid=valid;
+if (valid) {
+ pos->lat=lat;
+ pos->lon=lon;
+} else {
+ pos->lat=NAN;
+ pos->lon=NAN;
+}
+}
+
+void
+position_update(Position *pos, GpsData *data)
+{
+
+}
/** A lat/lon/alt position */
typedef struct _Position Position;
struct _Position {
+ gchar *desc;
+ gboolean valid;
gdouble lat;
gdouble lon;
gfloat altitude;
- gboolean valid;
- gchar *desc;
+ gfloat angle; /* Course from current position to this one */
time_t time;
- guint type;
+ guint type; /* Type of position */
};
/** A general definition of a point in the Mapper unit system. */
Path *path_new(void);
void path_free(Path *p);
+void path_insert_mark_text(Path *path, gchar *text);
+
void path_resize(Path *path, guint size);
void path_wresize(Path *path, guint wsize);