On Tue, Dec 10, 2013 at 01:22:30PM +0000, Daniel P. Berrange wrote:
On Mon, Dec 02, 2013 at 05:39:46PM +0100, Cédric Bosdonnat wrote:
> ---
> src/test/test_driver.c | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 62 insertions(+)
>
> diff --git a/src/test/test_driver.c b/src/test/test_driver.c
> index 4972e3d..66afdf7 100644
> --- a/src/test/test_driver.c
> +++ b/src/test/test_driver.c
> @@ -6027,6 +6056,37 @@ testConnectDomainEventDeregisterAny(virConnectPtr conn,
> }
>
>
> +static int
> +testConnectNetworkEventRegisterAny(virConnectPtr conn,
> + virNetworkPtr net,
> + int eventID,
> + virConnectNetworkEventGenericCallback callback,
> + void *opaque,
> + virFreeCallback freecb)
> +{
> + testConnPtr driver = conn->privateData;
> + int ret;
> +
> + testDriverLock(driver);
> + if (virNetworkEventStateRegisterID(conn,
> + driver->domainEventState,
> + net, eventID,
This is where you can add in the VIR_EVENT_NAMESPACE_NETWORK values
On second thoughts, virNetworkEventStateRegisterID itself should
add the VIR_EVENT_NAMESPACE_NETWORK value, not the callers.
> + VIR_OBJECT_EVENT_CALLBACK(callback),
> + opaque, freecb, &ret) < 0)
> + ret = -1;
> + testDriverUnlock(driver);
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|