Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libdnf, actions plugin] Implement "json" communication mode
Processes send requests and the actions plugin responds. - Request format: {"op":"<operation>", "domain":"<domain>", "args":{<op_domain_spec_args>}} "domain" is ignored in the case of the "log" operation. - Response format: {"op": "reply", "requested_op":"<op_from_request>", "domain": "<domain_from_request>", "status": "OK", "return":{<data>}} {"op": "reply", "requested_op":"<op_from_request>", "domain": "<domain_from_request>", "status": "ERROR", "message":"<error message>"} "return" is not included in the response to a request for a "log" operation. If the JSON request is unparsable - a syntax error or incomplete message, or the response cannot be written, the action plugin closes both communication pipes. The process must terminate if the communication pipes are closed.
- Loading branch information