diff options
author | Peter Krempa <pkrempa@redhat.com> | 2014-06-26 16:08:34 +0200 |
---|---|---|
committer | Peter Krempa <pkrempa@redhat.com> | 2014-06-27 09:38:13 +0200 |
commit | 02bffd47bd1665542079917b16afa62ea5f9683e (patch) | |
tree | 3e5c01cf4c7673199a6a27c528a53e0e81c949a9 /src/driver.h | |
parent | 96f62755130d2c9f2aef44ca44555b023c3c0cc8 (diff) | |
download | libvirt-02bffd47bd1665542079917b16afa62ea5f9683e.tar.gz |
net: merge virNetworkGetDHCPLeases and virNetworkGetDHCPLeasesForMAC
Instead of maintaining two very similar APIs, add the "@mac" parameter
to virNetworkGetDHCPLeases and kill virNetworkGetDHCPLeasesForMAC. Both
of those functions would return data the same way, so making @mac an
optional filter simplifies a lot of stuff.
Diffstat (limited to 'src/driver.h')
-rw-r--r-- | src/driver.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/driver.h b/src/driver.h index 6e72e92e1e..5018068f33 100644 --- a/src/driver.h +++ b/src/driver.h @@ -1184,15 +1184,10 @@ typedef int typedef int (*virDrvNetworkGetDHCPLeases)(virNetworkPtr network, + const char *mac, virNetworkDHCPLeasePtr **leases, unsigned int flags); -typedef int -(*virDrvNetworkGetDHCPLeasesForMAC)(virNetworkPtr network, - const char *mac, - virNetworkDHCPLeasePtr **leases, - unsigned int flags); - typedef struct _virDriver virDriver; typedef virDriver *virDriverPtr; @@ -1546,7 +1541,6 @@ struct _virNetworkDriver { virDrvNetworkIsActive networkIsActive; virDrvNetworkIsPersistent networkIsPersistent; virDrvNetworkGetDHCPLeases networkGetDHCPLeases; - virDrvNetworkGetDHCPLeasesForMAC networkGetDHCPLeasesForMAC; }; |