tests: qemumonitortestutils.h: Reformat header file

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-12-21 15:10:45 +01:00
parent a2c758398e
commit 93093b8089

View File

@ -31,45 +31,59 @@ typedef int (*qemuMonitorTestResponseCallback)(qemuMonitorTest *test,
qemuMonitorTestItem *item, qemuMonitorTestItem *item,
const char *message); const char *message);
int qemuMonitorTestAddHandler(qemuMonitorTest *test, int
qemuMonitorTestAddHandler(qemuMonitorTest *test,
const char *identifier, const char *identifier,
qemuMonitorTestResponseCallback cb, qemuMonitorTestResponseCallback cb,
void *opaque, void *opaque,
virFreeCallback freecb); virFreeCallback freecb);
int qemuMonitorTestAddResponse(qemuMonitorTest *test, int
qemuMonitorTestAddResponse(qemuMonitorTest *test,
const char *response); const char *response);
int qemuMonitorTestAddInvalidCommandResponse(qemuMonitorTest *test, int
qemuMonitorTestAddInvalidCommandResponse(qemuMonitorTest *test,
const char *expectedcommand, const char *expectedcommand,
const char *actualcommand); const char *actualcommand);
void *qemuMonitorTestItemGetPrivateData(qemuMonitorTestItem *item); void *
qemuMonitorTestItemGetPrivateData(qemuMonitorTestItem *item);
int qemuMonitorTestAddErrorResponse(qemuMonitorTest *test, const char *errmsg, ...); int
qemuMonitorTestAddErrorResponse(qemuMonitorTest *test,
const char *errmsg,
...);
void qemuMonitorTestAllowUnusedCommands(qemuMonitorTest *test); void
void qemuMonitorTestSkipDeprecatedValidation(qemuMonitorTest *test, qemuMonitorTestAllowUnusedCommands(qemuMonitorTest *test);
void
qemuMonitorTestSkipDeprecatedValidation(qemuMonitorTest *test,
bool allowRemoved); bool allowRemoved);
int qemuMonitorTestAddItem(qemuMonitorTest *test, int
qemuMonitorTestAddItem(qemuMonitorTest *test,
const char *command_name, const char *command_name,
const char *response); const char *response);
int qemuMonitorTestAddItemVerbatim(qemuMonitorTest *test, int
qemuMonitorTestAddItemVerbatim(qemuMonitorTest *test,
const char *command, const char *command,
const char *cmderr, const char *cmderr,
const char *response); const char *response);
int qemuMonitorTestAddAgentSyncResponse(qemuMonitorTest *test); int
qemuMonitorTestAddAgentSyncResponse(qemuMonitorTest *test);
int qemuMonitorTestAddItemParams(qemuMonitorTest *test, int
qemuMonitorTestAddItemParams(qemuMonitorTest *test,
const char *cmdname, const char *cmdname,
const char *response, const char *response,
...) ...)
G_GNUC_NULL_TERMINATED; G_GNUC_NULL_TERMINATED;
int qemuMonitorTestAddItemExpect(qemuMonitorTest *test, int
qemuMonitorTestAddItemExpect(qemuMonitorTest *test,
const char *cmdname, const char *cmdname,
const char *cmdargs, const char *cmdargs,
bool apostrophe, bool apostrophe,
@ -80,27 +94,35 @@ int qemuMonitorTestAddItemExpect(qemuMonitorTest *test,
#define qemuMonitorTestNewSchema(xmlopt, schema) \ #define qemuMonitorTestNewSchema(xmlopt, schema) \
qemuMonitorTestNew(xmlopt, NULL, NULL, NULL, schema) qemuMonitorTestNew(xmlopt, NULL, NULL, NULL, schema)
qemuMonitorTest *qemuMonitorTestNew(virDomainXMLOption *xmlopt, qemuMonitorTest *
qemuMonitorTestNew(virDomainXMLOption *xmlopt,
virDomainObj *vm, virDomainObj *vm,
virQEMUDriver *driver, virQEMUDriver *driver,
const char *greeting, const char *greeting,
GHashTable *schema); GHashTable *schema);
qemuMonitorTest *qemuMonitorTestNewFromFile(const char *fileName, qemuMonitorTest *
qemuMonitorTestNewFromFile(const char *fileName,
virDomainXMLOption *xmlopt, virDomainXMLOption *xmlopt,
bool simple); bool simple);
qemuMonitorTest *qemuMonitorTestNewFromFileFull(const char *fileName, qemuMonitorTest *
qemuMonitorTestNewFromFileFull(const char *fileName,
virQEMUDriver *driver, virQEMUDriver *driver,
virDomainObj *vm, virDomainObj *vm,
GHashTable *qmpschema); GHashTable *qmpschema);
qemuMonitorTest *qemuMonitorTestNewAgent(virDomainXMLOption *xmlopt); qemuMonitorTest *
qemuMonitorTestNewAgent(virDomainXMLOption *xmlopt);
void qemuMonitorTestFree(qemuMonitorTest *test); void
qemuMonitorTestFree(qemuMonitorTest *test);
qemuMonitor *qemuMonitorTestGetMonitor(qemuMonitorTest *test); qemuMonitor *
qemuAgent *qemuMonitorTestGetAgent(qemuMonitorTest *test); qemuMonitorTestGetMonitor(qemuMonitorTest *test);
virDomainObj *qemuMonitorTestGetDomainObj(qemuMonitorTest *test); qemuAgent *
qemuMonitorTestGetAgent(qemuMonitorTest *test);
virDomainObj *
qemuMonitorTestGetDomainObj(qemuMonitorTest *test);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(qemuMonitorTest, qemuMonitorTestFree); G_DEFINE_AUTOPTR_CLEANUP_FUNC(qemuMonitorTest, qemuMonitorTestFree);