RFC: do we want/need the "Ptr" typedefs for internal code ?

Jiri Denemark jdenemar at redhat.com
Wed Mar 10 07:35:02 UTC 2021


On Tue, Mar 09, 2021 at 17:44:16 +0000, Daniel P. Berrangé wrote:
...
> We can't do anything about the use "Ptr" in the include/ files because
> that is public ABI. We can potentially eliminate "Ptr" types everywhere
> else in the codebase, even the src/libvirt*.c files corresponding to
> the public includes.
> 
> Does anyone have suggestions for how these "Ptr" typedefs are
> benefiting libvirt ? Would anyone miss them ?

Oh yes, please go ahead and remove them. I learnt to use them as part of
libvirt coding style when I started working on libvirt, but never really
understood the reason behind them.

Jirka




More information about the libvir-list mailing list