Re: [libvirt-glib PATCHv2 4/5] gobject: Add wrapper for virNetworkDHCPLease

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 30, 2015 at 01:25:28PM +0100, Zeeshan Ali (Khattak) wrote:
> On Tue, Jun 30, 2015 at 12:41 PM, Christophe Fergeau
> <cfergeau@xxxxxxxxxx> wrote:
> > Hey,
> >
> > Looks good to me, I'd name the type GVirNetworkDhcpLease rather than
> > GVirNetworkDHCPLease, this is consistent with
> > GVirConfigCapabilitiesCpuModel (and not CPUModel).
> 
> Hm.. I was trying to keep it consistent with the underlying
> 'virNetworkDHCPLease'.

I know, I'd favour consistency in the libvirt-glib API.

> 
> > Maybe more descriptive doc for some of the fields (client id, iaid, ...)
> > could be useful? Or are they just obvious for someone familiar with
> > dhcp?
> 
> I mostly copied those docs from libvirt docs. I myself don't
> know/remember what those are. :) But I guess if someone using this API
> is reading those, they'd know what they are or find out.

Fwiw, I find libvirt documentation to be a bit more explicit.. (in
virNetworkGetDHCPLeases ).
Just realized now, but wouldn't we be better off with
gvir_network_dhcp_lease_get_client_id;
gvir_network_dhcp_lease_get_expiry_time;

instead of

gvir_network_dhcp_lease_get_clientid;
gvir_network_dhcp_lease_get_expirytime;

?

Attachment: pgpaI2QegpY57.pgp
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]