summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb
diff options
context:
space:
mode:
authorDario Lombardo2011-03-09 17:27:20 +0100
committerAndreas.Eversberg2011-03-09 17:27:20 +0100
commitaa2f2fdfa1a7839b03fbb555e3d7ecfd4ac026e4 (patch)
treec36c0c0fc7e781a10a47d44c2e55e204756fc78f /src/host/layer23/include/osmocom/bb
parentmobile: Store N.ba files in same directory as config file (diff)
downloadosmocom-aa2f2fdfa1a7839b03fbb555e3d7ecfd4ac026e4.tar.gz
osmocom-aa2f2fdfa1a7839b03fbb555e3d7ecfd4ac026e4.tar.xz
osmocom-aa2f2fdfa1a7839b03fbb555e3d7ecfd4ac026e4.zip
[PATCH] Added runtime selection of gps device.
Diffstat (limited to 'src/host/layer23/include/osmocom/bb')
-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 b7500db..58c0c53 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);