summaryrefslogtreecommitdiff
path: root/ctdb/tests/src/protocol_common.h
AgeCommit message (Collapse)AuthorFilesLines
2020-04-28ctdb-protocol: Add marshalling for struct ctdb_echo_dataVolker Lendecke1-0/+4
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
2019-10-24ctdb-protocol: Add marshalling for struct ctdb_db_vacuumMartin Schwenke1-0/+4
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2018-07-05ctdb-tests: Separate testing code for basic data typesAmitay Isaacs1-137/+1
This will be used for testing other daemons' protocol code. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-09-21ctdb-protocol: Add marshalling for struct ctdb_pid_srvidAmitay Isaacs1-0/+4
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13042 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-09-19ctdb-protocol: Add marshalling for ctdb_connection_listMartin Schwenke1-0/+5
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2017-09-01ctdb-protocol: Add a generic packet headerAmitay Isaacs1-0/+4
This will avoid duplication when new daemons (and new client-server protocols) are created out of the main ctdb daemon. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-tests: Drop unused test templateAmitay Isaacs1-19/+0
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Wed Aug 30 18:55:42 CEST 2017 on sn-devel-144
2017-08-30ctdb-protocol: Fix marshalling for ctdb_g_lockAmitay Isaacs1-1/+1
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Fix marshalling for ctdb_server_idAmitay Isaacs1-1/+1
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Fix marshalling for ctdb_ltdb_headerAmitay Isaacs1-1/+1
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Add marshalling for ctdb_latency_counterAmitay Isaacs1-0/+4
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Add marshalling for tdb_data with sizeAmitay Isaacs1-0/+3
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Fix marshalling for tdb_dataAmitay Isaacs1-0/+3
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Add marshalling for struct timevalAmitay Isaacs1-0/+3
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Fix marshalling for pid_tAmitay Isaacs1-0/+3
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Fix marshalling for a string with lengthAmitay Isaacs1-0/+3
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Fix marshalling for a stringAmitay Isaacs1-2/+2
Always return NULL terminated strings. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Add marshalling for boolAmitay Isaacs1-0/+3
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Fix marshalling for doubleAmitay Isaacs1-0/+3
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Fix marshalling for uint64_tAmitay Isaacs1-0/+3
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Fix marshalling for uint32_tAmitay Isaacs1-0/+3
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Fix marshalling for int32_tAmitay Isaacs1-0/+3
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Add marshalling for uint16_tAmitay Isaacs1-0/+4
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Add marshalling for uint8_tAmitay Isaacs1-0/+3
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-tests: Add test templates for various data typesAmitay Isaacs1-0/+81
These test templates will use new style of len/push/pull functions. The differences in the new style of marshalling functions are: 1. len/push functions will be passed pointer to a value instead of the value 2. push/pull functions will additionally return the number of bytes consumed Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-tests: Reorganize protocol testsAmitay Isaacs1-0/+250
This patch splits the protocol tests from: protocol_types_test.c protocol_client_test.c and creates the following files: protocol_common.[ch] - common code for data types protocol_common_ctdb.[ch] - common code for ctdb protocol elements protocol_common_event.[ch] - common code for eventd protocol elements protocol_basic_test.c - basic data types protocol_types_test.c - ctdb data types protocol_ctdb_test.c - ctdb protocol protocol_event_test.c - eventd protocol Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>