Re: [libvirt] [PATCHv3 1/4] net-dhcp-leases: Implement the public APIs

2013-09-16 Thread Eric Blake
On 09/15/2013 11:49 PM, Nehal J Wani wrote: > Introduce 3 new APIs, virNetworkGetDHCPLeases, virNetworkGetDHCPLeasesForMAC > and virNetworkDHCPLeaseFree. > > + > +typedef struct _virNetworkDHCPLeases virNetworkDHCPLeases; > +typedef virNetworkDHCPLeases *virNetworkDHCPLeasesPtr; > +struct _virNet

Re: [libvirt] [PATCHv3 1/4] net-dhcp-leases: Implement the public APIs

2013-09-16 Thread Nehal J Wani
On Mon, Sep 16, 2013 at 8:55 PM, Daniel P. Berrange wrote: > > On Mon, Sep 16, 2013 at 08:45:09PM +0530, Nehal J Wani wrote: > > PFA: Diff > > > > On Mon, Sep 16, 2013 at 8:44 PM, Nehal J Wani > > wrote: > > > On Mon, Sep 16, 2013 at 3:22 PM, Daniel P. Berrange > > > wrote: > > >> > > >> On Mo

Re: [libvirt] [PATCHv3 1/4] net-dhcp-leases: Implement the public APIs

2013-09-16 Thread Daniel P. Berrange
On Mon, Sep 16, 2013 at 08:45:09PM +0530, Nehal J Wani wrote: > PFA: Diff > > On Mon, Sep 16, 2013 at 8:44 PM, Nehal J Wani wrote: > > On Mon, Sep 16, 2013 at 3:22 PM, Daniel P. Berrange > > wrote: > >> > >> On Mon, Sep 16, 2013 at 11:19:13AM +0530, Nehal J Wani wrote: > >> > +int > >> > +virNe

Re: [libvirt] [PATCHv3 1/4] net-dhcp-leases: Implement the public APIs

2013-09-16 Thread Nehal J Wani
PFA: Diff On Mon, Sep 16, 2013 at 8:44 PM, Nehal J Wani wrote: > On Mon, Sep 16, 2013 at 3:22 PM, Daniel P. Berrange > wrote: >> >> On Mon, Sep 16, 2013 at 11:19:13AM +0530, Nehal J Wani wrote: >> > +int >> > +virNetworkGetDHCPLeasesForMAC(virNetworkPtr network, >> > +

Re: [libvirt] [PATCHv3 1/4] net-dhcp-leases: Implement the public APIs

2013-09-16 Thread Nehal J Wani
On Mon, Sep 16, 2013 at 3:22 PM, Daniel P. Berrange wrote: > > On Mon, Sep 16, 2013 at 11:19:13AM +0530, Nehal J Wani wrote: > > +int > > +virNetworkGetDHCPLeasesForMAC(virNetworkPtr network, > > + const char *mac, > > + virNetworkDHCPLease

Re: [libvirt] [PATCHv3 1/4] net-dhcp-leases: Implement the public APIs

2013-09-16 Thread Daniel P. Berrange
On Mon, Sep 16, 2013 at 11:19:13AM +0530, Nehal J Wani wrote: > +int > +virNetworkGetDHCPLeasesForMAC(virNetworkPtr network, > + const char *mac, > + virNetworkDHCPLeasesPtr **leases, > + unsigned int flags) > +{

[libvirt] [PATCHv3 1/4] net-dhcp-leases: Implement the public APIs

2013-09-15 Thread Nehal J Wani
Introduce 3 new APIs, virNetworkGetDHCPLeases, virNetworkGetDHCPLeasesForMAC and virNetworkDHCPLeaseFree. * virNetworkGetDHCPLeases: returns the dhcp leases information for a given virtual network. The information includes lease expirytime, MAC Address, IP Address (with type and prefix),