From d8462cfb9ef84e1b0fbd7c794993318d56bd6dfc Mon Sep 17 00:00:00 2001 From: Chris Browet Date: Wed, 31 Mar 2010 04:35:58 -0400 Subject: 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 --- json.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'json.h') 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 */ -- cgit v1.2.1