diff options
author | Amitay Isaacs <amitay@gmail.com> | 2017-07-19 11:12:08 +1000 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-08-30 14:59:25 +0200 |
commit | 97184a8d461265f909defae35ffef08753aea9b2 (patch) | |
tree | 2aa385cca32200d2aa72fe51187a8a0fd5f3fe43 /ctdb/protocol/protocol_api.h | |
parent | b0ce8183ba773dbd38de28a97e699feb4e06aa01 (diff) | |
download | samba-97184a8d461265f909defae35ffef08753aea9b2.tar.gz |
ctdb-protocol: Fix marshalling for ctdb_req_header
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/protocol/protocol_api.h')
-rw-r--r-- | ctdb/protocol/protocol_api.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ctdb/protocol/protocol_api.h b/ctdb/protocol/protocol_api.h index 9e47f2691d9..d6acefbcbcc 100644 --- a/ctdb/protocol/protocol_api.h +++ b/ctdb/protocol/protocol_api.h @@ -81,10 +81,11 @@ void ctdb_req_header_fill(struct ctdb_req_header *h, uint32_t generation, uint32_t operation, uint32_t destnode, uint32_t srcnode, uint32_t reqid); -size_t ctdb_req_header_len(struct ctdb_req_header *h); -void ctdb_req_header_push(struct ctdb_req_header *h, uint8_t *buf); +size_t ctdb_req_header_len(struct ctdb_req_header *in); +void ctdb_req_header_push(struct ctdb_req_header *in, uint8_t *buf, + size_t *npush); int ctdb_req_header_pull(uint8_t *buf, size_t buflen, - struct ctdb_req_header *h); + struct ctdb_req_header *out, size_t *npull); int ctdb_req_header_verify(struct ctdb_req_header *h, uint32_t operation); |