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,76 +31,98 @@ typedef int (*qemuMonitorTestResponseCallback)(qemuMonitorTest *test,
qemuMonitorTestItem *item, qemuMonitorTestItem *item,
const char *message); const char *message);
int qemuMonitorTestAddHandler(qemuMonitorTest *test, int
const char *identifier, qemuMonitorTestAddHandler(qemuMonitorTest *test,
qemuMonitorTestResponseCallback cb, const char *identifier,
void *opaque, qemuMonitorTestResponseCallback cb,
virFreeCallback freecb); void *opaque,
virFreeCallback freecb);
int qemuMonitorTestAddResponse(qemuMonitorTest *test, int
const char *response); qemuMonitorTestAddResponse(qemuMonitorTest *test,
int qemuMonitorTestAddInvalidCommandResponse(qemuMonitorTest *test,
const char *expectedcommand,
const char *actualcommand);
void *qemuMonitorTestItemGetPrivateData(qemuMonitorTestItem *item);
int qemuMonitorTestAddErrorResponse(qemuMonitorTest *test, const char *errmsg, ...);
void qemuMonitorTestAllowUnusedCommands(qemuMonitorTest *test);
void qemuMonitorTestSkipDeprecatedValidation(qemuMonitorTest *test,
bool allowRemoved);
int qemuMonitorTestAddItem(qemuMonitorTest *test,
const char *command_name,
const char *response); const char *response);
int qemuMonitorTestAddItemVerbatim(qemuMonitorTest *test, int
const char *command, qemuMonitorTestAddInvalidCommandResponse(qemuMonitorTest *test,
const char *cmderr, const char *expectedcommand,
const char *response); const char *actualcommand);
int qemuMonitorTestAddAgentSyncResponse(qemuMonitorTest *test); void *
qemuMonitorTestItemGetPrivateData(qemuMonitorTestItem *item);
int qemuMonitorTestAddItemParams(qemuMonitorTest *test, int
const char *cmdname, qemuMonitorTestAddErrorResponse(qemuMonitorTest *test,
const char *response, const char *errmsg,
...) ...);
void
qemuMonitorTestAllowUnusedCommands(qemuMonitorTest *test);
void
qemuMonitorTestSkipDeprecatedValidation(qemuMonitorTest *test,
bool allowRemoved);
int
qemuMonitorTestAddItem(qemuMonitorTest *test,
const char *command_name,
const char *response);
int
qemuMonitorTestAddItemVerbatim(qemuMonitorTest *test,
const char *command,
const char *cmderr,
const char *response);
int
qemuMonitorTestAddAgentSyncResponse(qemuMonitorTest *test);
int
qemuMonitorTestAddItemParams(qemuMonitorTest *test,
const char *cmdname,
const char *response,
...)
G_GNUC_NULL_TERMINATED; G_GNUC_NULL_TERMINATED;
int qemuMonitorTestAddItemExpect(qemuMonitorTest *test, int
const char *cmdname, qemuMonitorTestAddItemExpect(qemuMonitorTest *test,
const char *cmdargs, const char *cmdname,
bool apostrophe, const char *cmdargs,
const char *response); bool apostrophe,
const char *response);
#define qemuMonitorTestNewSimple(xmlopt) \ #define qemuMonitorTestNewSimple(xmlopt) \
qemuMonitorTestNew(xmlopt, NULL, NULL, NULL, NULL) qemuMonitorTestNew(xmlopt, NULL, NULL, NULL, NULL)
#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 *
virDomainObj *vm, qemuMonitorTestNew(virDomainXMLOption *xmlopt,
virQEMUDriver *driver, virDomainObj *vm,
const char *greeting, virQEMUDriver *driver,
GHashTable *schema); const char *greeting,
GHashTable *schema);
qemuMonitorTest *qemuMonitorTestNewFromFile(const char *fileName, qemuMonitorTest *
virDomainXMLOption *xmlopt, qemuMonitorTestNewFromFile(const char *fileName,
bool simple); virDomainXMLOption *xmlopt,
qemuMonitorTest *qemuMonitorTestNewFromFileFull(const char *fileName, bool simple);
virQEMUDriver *driver, qemuMonitorTest *
virDomainObj *vm, qemuMonitorTestNewFromFileFull(const char *fileName,
GHashTable *qmpschema); virQEMUDriver *driver,
virDomainObj *vm,
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);