summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2004-08-11 21:10:11 +0000
committerEric S. Raymond <esr@thyrsus.com>2004-08-11 21:10:11 +0000
commitea16011ee24a62547a1a2ef42ba7295c0b45ae0d (patch)
tree16e7d1e269166e429baef566e33d5cb47c0b7429 /netlib.c
parent36208f433acb9826c6d46d9d145eb06910f49577 (diff)
downloadgpsd-ea16011ee24a62547a1a2ef42ba7295c0b45ae0d.tar.gz
ESR's gpsd patch #4: This is the one that nukes globals.
There is exactly one (1) global variable left after this patch. It is called "session", and is a per-GPS-session object that looks like this: struct session_t { int debug; struct longlat initpos; int device_type; struct OUTDATA gNMEAdata; }; The next step is for the device-type field to stop being an enum and become an object pointer -- or as close to an object pointer as you get in C, anyway. It will refer to a driver object.
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/netlib.c b/netlib.c
index f4d1090f..6083348f 100644
--- a/netlib.c
+++ b/netlib.c
@@ -17,6 +17,8 @@
#include <sys/param.h>
#endif
+#include "outdata.h"
+#include "nmea.h"
#include "gpsd.h"