blob: a4b5d15266691fd3c3a6b10d35b8619f8f4b939c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* gps_json.h - JSON handling for libgps and gpsd */
#include "json.h"
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);
int json_tpv_read(const char *, struct gps_data_t *);
int json_sky_read(const char *, struct gps_data_t *);
int json_watch_read(int *, char *);
void json_watch_dump(int, char *, size_t);
#define NWATCHTYPES 5
struct watchmap_t {
int mask;
gnss_type class;
char *string;
};
extern const struct watchmap_t watchmap[NWATCHTYPES];
/* gps_json.h ends here */
|