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

#include "json.h"

#define GPS_JSON_COMMAND_MAX	80
#define GPS_JSON_RESPONSE_MAX	1024

int json_watch_read(const char *, struct policy_t *, const char **);
int json_configdev_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);
void json_configdev_dump(struct gps_device_t *, char *, size_t);
int libgps_json_unpack(const char *, struct gps_data_t *);

/* gps_json.h ends here */