Re: [libvirt-glib 2/2] RFC: Make use of GUINT_TO_POINTER/GPOINTER_TO_UINT

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

 



On Mon, Jul 30, 2012 at 06:30:28PM +0200, Zeeshan Ali (Khattak) wrote:
> From: "Zeeshan Ali (Khattak)" <zeeshanak@xxxxxxxxx>
> 
> We create struct and a free function each time we need to pass a simple
> unsigned integer to an async function. Code can be simplified if we
> don't do that but rather use glib's API to convert to/from uint to
> pointer.

If I was writing such code, I'd probably go with GUINT_TO_POINTER, but
since it's written with a struct, and it's more consistent with other async
code, I'd keep it this way as it makes things more predictable and
readable. But if you really want to make this change, this is fine with me.

Christophe

Attachment: pgp4Wv9gs1w4B.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]