diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-09-28 03:36:14 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-09-28 03:36:14 -0400 |
commit | 45b6da360af526817cba737bc3b13ad6e24ee26b (patch) | |
tree | 5f3444b98ba8cf73008fdd3ca3a37c138cffd463 /libgps_sock.c | |
parent | 702896ec598a531fa9263774912d7fe922037180 (diff) | |
download | gpsd-45b6da360af526817cba737bc3b13ad6e24ee26b.tar.gz |
First step in runtime export dispatch for the client library.
Diffstat (limited to 'libgps_sock.c')
-rw-r--r-- | libgps_sock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgps_sock.c b/libgps_sock.c index eee2b926..0c2347e4 100644 --- a/libgps_sock.c +++ b/libgps_sock.c @@ -41,6 +41,7 @@ extern char *strtok_r(char *, const char *, char **); struct privdata_t { + enum export_t export; bool newstyle; /* data buffered from the last read */ ssize_t waiting; @@ -85,6 +86,7 @@ int gps_sock_open(/*@null@*/const char *host, /*@null@*/const char *port, gpsdata->privdata = (void *)malloc(sizeof(struct privdata_t)); if (gpsdata->privdata == NULL) return -1; + PRIVATE(gpsdata)->export = sockets; PRIVATE(gpsdata)->newstyle = false; PRIVATE(gpsdata)->waiting = 0; |