From 3ba7ca4155c7be439108b174a3b49a508923d378 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Thu, 30 Jun 2016 21:52:59 -0400 Subject: RPC wire format now includes client handle in all requests, and opcode and client handle in all responses. This simplies the daemon a little, and means that the directly-connected serial client uses the same wire format as the daemon. The expense is some redundant code in rpc_client and rpc_server to process (and throw away) this extra stuff. --- xdr_internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xdr_internal.h') diff --git a/xdr_internal.h b/xdr_internal.h index 921b991..9d02fd3 100644 --- a/xdr_internal.h +++ b/xdr_internal.h @@ -47,6 +47,8 @@ hal_error_t hal_xdr_decode_int(const uint8_t ** const inbuf, const uint8_t * const limit, uint32_t * const value); +hal_error_t hal_xdr_undecode_int(const uint8_t ** const inbuf); + hal_error_t hal_xdr_encode_buffer(uint8_t ** const outbuf, const uint8_t * const limit, const uint8_t * const value, -- cgit v1.2.3