• E
    event: make network events easier to use without casts · 36dd0bd8
    Eric Blake 提交于
    While comparing network and domain events, I noticed that the
    test driver had to do a cast in one place and not the other.
    For consistency, we should hide the necessary casting as low
    as possible in the stack, with everything else using saner
    types.
    
    * src/conf/network_event.h (virNetworkEventStateRegisterID): Alter
    type.
    * src/conf/network_event.c (virNetworkEventStateRegisterID): Hoist
    cast here.
    * src/test/test_driver.c (testConnectNetworkEventRegisterAny):
    Simplify callers.
    * src/remote/remote_driver.c
    (remoteConnectNetworkEventRegisterAny): Likewise.
    * src/network/bridge_driver.c
    (networkConnectNetworkEventRegisterAny): Likewise.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    36dd0bd8
test_driver.c 209.2 KB