summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorChris Browet <cbro@semperpax.com>2010-03-31 04:35:58 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-03-31 04:35:58 -0400
commitd8462cfb9ef84e1b0fbd7c794993318d56bd6dfc (patch)
tree4ef0f2990e1d5e63d89c8361a57e7231252153df /json.h
parent3202783122582a67b82ff40507550a17dffebb74 (diff)
downloadgpsd-d8462cfb9ef84e1b0fbd7c794993318d56bd6dfc.tar.gz
Internals of Qt support.
All regression tests pass. Note from esr: this feature cannot be announced yert, as it requires documentation in the INSTALL file. 1. What the target environments are (Linux? Windows? Both) 2. All build prerequisites (C++ compiler? Qt library? Other libraries?) 3. What the new files libQgpsmm_global.h and libQgpsmm.pro are for, and how the are used. We also need to know how to regression-test this code under Linux so we can verify that it's not broken as the client library evolves. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'json.h')
-rw-r--r--json.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/json.h b/json.h
index 1d928ee1..6e48cddb 100644
--- a/json.h
+++ b/json.h
@@ -65,6 +65,9 @@ struct json_attr_t {
#define JSON_ATTR_MAX 31 /* max chars in JSON attribute name */
#define JSON_VAL_MAX 120 /* max chars in JSON value part */
+#ifdef __cplusplus
+extern "C" {
+#endif
int json_read_object(const char *, const struct json_attr_t *,
/*@null@*/const char **);
int json_read_array(const char *, const struct json_array_t *,
@@ -72,6 +75,9 @@ int json_read_array(const char *, const struct json_array_t *,
const /*@observer@*/char *json_error_string(int);
void json_enable_debug(int, FILE *);
+#ifdef __cplusplus
+}
+#endif
#define JSON_ERR_OBSTART 1 /* non-WS when expecting object start */
#define JSON_ERR_ATTRSTART 2 /* non-WS when expecting attrib start */