Re: [PATCH v4 02/10] tests/qtest: add support for callback to receive QMP events

2023-06-02 Thread Thomas Huth
On 01/06/2023 18.13, Daniel P. Berrangé wrote: Currently code must call one of the qtest_qmp_event* functions to fetch events. These are only usable if the immediate caller knows the particular event they want to capture, and are only interested in one specific event type. Adding ability to regis

Re: [PATCH v4 02/10] tests/qtest: add support for callback to receive QMP events

2023-06-01 Thread Juan Quintela
Daniel P. Berrangé wrote: > Currently code must call one of the qtest_qmp_event* functions to > fetch events. These are only usable if the immediate caller knows > the particular event they want to capture, and are only interested > in one specific event type. Adding ability to register an event >

[PATCH v4 02/10] tests/qtest: add support for callback to receive QMP events

2023-06-01 Thread Daniel P . Berrangé
Currently code must call one of the qtest_qmp_event* functions to fetch events. These are only usable if the immediate caller knows the particular event they want to capture, and are only interested in one specific event type. Adding ability to register an event callback lets the caller capture a r