ctdb-protocol: Add marshalling for control CHECK_PID_SRVID
[samba.git] / ctdb / tests / src / protocol_common_ctdb.c
index 26b1ad65d80a3904c3da1f13b1384adae33897b8..0c3a9a89f2f0f611e9f47a50be5c8426f6dfa657 100644 (file)
@@ -603,6 +603,12 @@ void fill_ctdb_req_control_data(TALLOC_CTX *mem_ctx,
                fill_ctdb_string(mem_ctx, &cd->data.db_name);
                assert(cd->data.db_name != NULL);
                break;
+
+       case CTDB_CONTROL_CHECK_PID_SRVID:
+               cd->data.pid_srvid = talloc(mem_ctx, struct ctdb_pid_srvid);
+               assert(cd->data.pid_srvid != NULL);
+               fill_ctdb_pid_srvid(mem_ctx, cd->data.pid_srvid);
+               break;
        }
 }
 
@@ -1005,6 +1011,9 @@ void verify_ctdb_req_control_data(struct ctdb_req_control_data *cd,
                verify_ctdb_string(&cd->data.db_name, &cd2->data.db_name);
                break;
 
+       case CTDB_CONTROL_CHECK_PID_SRVID:
+               verify_ctdb_pid_srvid(cd->data.pid_srvid, cd2->data.pid_srvid);
+               break;
        }
 }
 
@@ -1417,6 +1426,8 @@ void fill_ctdb_reply_control_data(TALLOC_CTX *mem_ctx,
                cd->data.db_id = rand32();
                break;
 
+       case CTDB_CONTROL_CHECK_PID_SRVID:
+               break;
        }
 }
 
@@ -1762,6 +1773,8 @@ void verify_ctdb_reply_control_data(struct ctdb_reply_control_data *cd,
                assert(cd->data.db_id == cd2->data.db_id);
                break;
 
+       case CTDB_CONTROL_CHECK_PID_SRVID:
+               break;
        }
 }