summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb/common/gps.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/layer23/include/osmocom/bb/common/gps.h')
-rw-r--r--src/host/layer23/include/osmocom/bb/common/gps.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/host/layer23/include/osmocom/bb/common/gps.h b/src/host/layer23/include/osmocom/bb/common/gps.h
index b7500dbc..58c0c536 100644
--- a/src/host/layer23/include/osmocom/bb/common/gps.h
+++ b/src/host/layer23/include/osmocom/bb/common/gps.h
@@ -19,17 +19,24 @@
*
*/
+enum {
+ GPS_TYPE_UNDEF,
+ GPS_TYPE_GPSD,
+ GPS_TYPE_SERIAL
+};
+
struct osmo_gps {
/* GPS device */
uint8_t enable;
+ uint8_t gps_type;
-#ifdef _USE_GPSD
+#ifdef _HAVE_GPSD
char gpsd_host[32];
char gpsd_port[6];
-#else
+#endif
+
char device[32];
uint32_t baud;
-#endif
/* current data */
uint8_t valid; /* we have a fix */
@@ -37,7 +44,7 @@ struct osmo_gps {
double latitude, longitude;
};
-extern struct osmo_gps gps;
+extern struct osmo_gps g;
int osmo_gps_open(void);
void osmo_gps_close(void);