summaryrefslogtreecommitdiff
path: root/shared_json.c
diff options
context:
space:
mode:
authorReinhard Arlt <reinhard.arlt@t-online.de>2014-12-15 23:01:49 +0100
committerReinhard Arlt <reinhard.arlt@t-online.de>2014-12-15 23:01:49 +0100
commit2d6a223c05175c1570ee8f205d48442b4ea3aba0 (patch)
tree4e219e21099f67be493909088ba4b41f3ec9c4e2 /shared_json.c
parentd695f3e71a1d9dfdd9840b2533f86f491a1bfda5 (diff)
downloadgpsd-2d6a223c05175c1570ee8f205d48442b4ea3aba0.tar.gz
Add dummy pps parameter to WATCH.
Diffstat (limited to 'shared_json.c')
-rw-r--r--shared_json.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared_json.c b/shared_json.c
index 7c87c3e6..2d8cb6f8 100644
--- a/shared_json.c
+++ b/shared_json.c
@@ -81,6 +81,7 @@ int json_watch_read(const char *buf,
/*@out@*/ struct policy_t *ccp,
/*@null@*/ const char **endptr)
{
+ bool dummy_pps_flag;
/*@ -fullinitblock @*/
/* *INDENT-OFF* */
struct json_attr_t chanconfig_attrs[] = {
@@ -101,6 +102,8 @@ int json_watch_read(const char *buf,
.len = sizeof(ccp->devpath)},
{"remote", t_string, .addr.string = ccp->remote,
.len = sizeof(ccp->remote)},
+ {"pps", t_boolean, .addr.boolean = &dummy_pps_flag,
+ .nodefault = false},
{NULL},
};
/* *INDENT-ON* */