summaryrefslogtreecommitdiff
path: root/gps_json.h
diff options
context:
space:
mode:
authorGregory Fong <gregory.fong@virginorbit.com>2018-06-27 18:54:31 -0700
committerGary E. Miller <gem@rellim.com>2018-06-27 18:54:31 -0700
commite95d4cfe6fbb48b41f08cb040e99b50920197212 (patch)
treee1d108ce27a22e3e079f95ab06a68f923052fa5d /gps_json.h
parent30b60cd7c8af566c641f97753c3fe50085aa7e14 (diff)
downloadgpsd-e95d4cfe6fbb48b41f08cb040e99b50920197212.tar.gz
gps_json.h: Declare struct gps_device_t
It seems like gps.h is always included before gps_json.h, which is an odd requirement but acceptable. But it probably shouldn't require including gpsd.h for one struct, so just declare gps_device_t here. Signed-off-by: Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'gps_json.h')
-rw-r--r--gps_json.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gps_json.h b/gps_json.h
index 9d97304c..2b19d809 100644
--- a/gps_json.h
+++ b/gps_json.h
@@ -13,6 +13,9 @@
#ifdef __cplusplus
extern "C" {
#endif
+
+struct gps_device_t;
+
void json_data_report(const gps_mask_t,
const struct gps_device_t *,
const struct policy_t *,