summaryrefslogtreecommitdiff
path: root/gps_json.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-16 09:59:04 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-16 09:59:04 -0500
commitb3b41ddf2ebea8bf4a12b0c6c45330ed0d242f6b (patch)
treee7808652682b79820e289fa32eedfa9943d88475 /gps_json.h
parenta3766b700808d486762edc7c814ac43412c9296b (diff)
downloadgpsd-b3b41ddf2ebea8bf4a12b0c6c45330ed0d242f6b.tar.gz
Refactoring step. All regression tests pass.
What's going in with this commit, and the last one, is that I'm disentangling the logic for JSON reporting of device state from the daemon dispatcher layer. This means that other programs that use libgpsd *without* necessarily going through the dispatcher layer will be able to do so. No logic changes.
Diffstat (limited to 'gps_json.h')
-rw-r--r--gps_json.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gps_json.h b/gps_json.h
index 0f141650..e5a82594 100644
--- a/gps_json.h
+++ b/gps_json.h
@@ -13,6 +13,8 @@
#ifdef __cplusplus
extern "C" {
#endif
+void json_data_report(gps_mask_t, struct gps_data_t *, struct policy_t *,
+ /*@out@*/char *, size_t);
char *json_stringify(/*@out@*/char *, size_t, /*@in@*/const char *);
void json_tpv_dump(const struct gps_data_t *, /*@out@*/char *, size_t);
void json_noise_dump(const struct gps_data_t *, /*@out@*/char *, size_t);