From ea16011ee24a62547a1a2ef42ba7295c0b45ae0d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 11 Aug 2004 21:10:11 +0000 Subject: 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. --- netlib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'netlib.c') diff --git a/netlib.c b/netlib.c index f4d1090f..6083348f 100644 --- a/netlib.c +++ b/netlib.c @@ -17,6 +17,8 @@ #include #endif +#include "outdata.h" +#include "nmea.h" #include "gpsd.h" -- cgit v1.2.1