diff options
Diffstat (limited to 'src/shared/varlink.h')
-rw-r--r-- | src/shared/varlink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/varlink.h b/src/shared/varlink.h index 516d3b5a90..6ec708aba2 100644 --- a/src/shared/varlink.h +++ b/src/shared/varlink.h @@ -115,6 +115,9 @@ int varlink_error_errno(Varlink *v, int error); int varlink_notify(Varlink *v, JsonVariant *parameters); int varlink_notifyb(Varlink *v, ...); +/* Parsing incoming data via json_dispatch() and generate a nice error on parse errors */ +int varlink_dispatch(Varlink *v, JsonVariant *parameters, const JsonDispatch table[], void *userdata); + /* Write outgoing fds into the socket (to be associated with the next enqueued message) */ int varlink_push_fd(Varlink *v, int fd); int varlink_dup_fd(Varlink *v, int fd); |