X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=ctdb%2Ftests%2Fsrc%2Fprotocol_common.c;fp=ctdb%2Ftests%2Fsrc%2Fprotocol_common.c;h=212c23ce965813bb01201bc4de161516fbcfb898;hb=6f56f45639e6404161da425bcd2654624907a439;hp=2030b4bb5e556eb6c91b652df6714099d37f8c6d;hpb=4f3db63d5e68382fff9196ce6cf9976501519fdc;p=vlendec%2Fsamba-autobuild%2F.git diff --git a/ctdb/tests/src/protocol_common.c b/ctdb/tests/src/protocol_common.c index 2030b4bb5e5..212c23ce965 100644 --- a/ctdb/tests/src/protocol_common.c +++ b/ctdb/tests/src/protocol_common.c @@ -323,6 +323,19 @@ void verify_ctdb_db_vacuum(struct ctdb_db_vacuum *p1, verify_ctdb_bool(&p1->full_vacuum_run, &p2->full_vacuum_run); } +void fill_ctdb_echo_data(TALLOC_CTX *mem_ctx, struct ctdb_echo_data *p) +{ + fill_ctdb_uint32(&p->timeout); + fill_tdb_data(mem_ctx, &p->buf); +} + +void verify_ctdb_echo_data(struct ctdb_echo_data *p1, + struct ctdb_echo_data *p2) +{ + verify_ctdb_uint32(&p1->timeout, &p2->timeout); + verify_tdb_data(&p1->buf, &p2->buf); +} + void fill_ctdb_ltdb_header(struct ctdb_ltdb_header *p) { p->rsn = rand64();