summaryrefslogtreecommitdiff
path: root/gps_json.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-18 13:22:31 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-18 13:22:31 -0400
commitcd86d4410bcff417de15a0fc5eb905ef56c26596 (patch)
tree54b97075dc41737757b0c5d918c8fc5a0d694614 /gps_json.h
parentc00be23fbd4cf2aa23d85abc5ec68d31342c010d (diff)
downloadgpsd-cd86d4410bcff417de15a0fc5eb905ef56c26596.tar.gz
In the client API, take the data buffer out of the gpsdata_t structure.
tz has shown me that we had a point of brittleness where the size of the client's data buffer was exposed in gps_data_t. Solution: move it (and the data-waiting count) to the client's private-data member. Requires a new but trivial client-library entry point to get the buffer pointer when a client needs it. Had to be done before API Version 5 froze, or we'd have been stuck breaking a shipped API again. No implications for the daemon or other tools, as this buffer is never used there. (Except it gets rid of several K of never-used static buffer space in the daemon, which is a good thing.) All regression tests pass. Code splints clean. cgps (the only place the API fix matters in our code) live-tests correctly.
Diffstat (limited to 'gps_json.h')
-rw-r--r--gps_json.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gps_json.h b/gps_json.h
index e5a82594..bf5150d2 100644
--- a/gps_json.h
+++ b/gps_json.h
@@ -8,7 +8,7 @@
#include "json.h"
#define GPS_JSON_COMMAND_MAX 80
-#define GPS_JSON_RESPONSE_MAX 1536
+#define GPS_JSON_RESPONSE_MAX 4096
#ifdef __cplusplus
extern "C" {