summaryrefslogtreecommitdiff
path: root/gps_json.h
blob: 1888101dd69374abe56b7609c6012419a2af303c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* gps_json.h - JSON handling for libgps and gpsd */

#include "json.h"

#define GPS_JSON_COMMAND_MAX	80
#define GPS_JSON_RESPONSE_MAX	1024

char *json_stringify(char *);
int json_watch_read(const char *, struct policy_t *, const char **);
int json_device_read(const char *, struct devconfig_t *, const char **);
void json_version_dump(char *reply, size_t replylen);
void json_tpv_dump(struct gps_data_t *, struct gps_fix_t *, char *, size_t);
void json_sky_dump(struct gps_data_t *, char *, size_t);
void json_device_dump(struct gps_device_t *, char *, size_t);
void json_watch_dump(struct policy_t *, char *, size_t);
int json_rtcm2_read(const char *, char *, size_t, struct rtcm2_t *, const char **);
int json_ais_read(const char *, char *, size_t, struct ais_t *, const char **);
int libgps_json_unpack(const char *, struct gps_data_t *);

/* gps_json.h ends here */