diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2004-08-11 21:10:11 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2004-08-11 21:10:11 +0000 |
commit | ea16011ee24a62547a1a2ef42ba7295c0b45ae0d (patch) | |
tree | 16e7d1e269166e429baef566e33d5cb47c0b7429 /netlib.c | |
parent | 36208f433acb9826c6d46d9d145eb06910f49577 (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -17,6 +17,8 @@ #include <sys/param.h> #endif +#include "outdata.h" +#include "nmea.h" #include "gpsd.h" |