5 #include <glib-object.h>
10 POSITION_TYPE_DESTINATION,
11 POSITION_TYPE_WAYPOINT,
15 /** A lat/lon/alt position */
17 typedef struct _Position Position;
19 gchar *name; /* Name of position */
20 guint id; /* Unique ID of position */
21 PositionType type; /* Type of position (Home, Destination, Waypoint, etc) */
22 gboolean valid; /* Is lat/lon valid ? */
26 gfloat heading; /* Where is it heading ? */
27 gfloat angle; /* Course from current position to this one */
28 time_t time; /* Time last changed */
31 /* Special positions */
35 Position *position_new(PositionType type, guint id);
36 void position_free(Position *p);
37 void position_set(Position *pos, gboolean valid, gdouble lat, gdouble lon, gfloat alt);