[libvirt] [PATCH] docs: split typedef and struct definition for apibuild.py

Michal Privoznik mprivozn at redhat.com
Fri Dec 19 07:40:26 UTC 2014


On 18.12.2014 22:31, Claudio Bley wrote:
> The members of struct virSecurityLabel[1] and struct
> virSecurityModel[2] were not shown in the libvirt API docs because the
> corresponding <field> elements were missing from the libvirt-api.xml.
>
> The reason is that apibuild.py does not cope well with typedef's using
> inline struct definitions. It fails to associate any info about the
> struct with the typedef and consequently cannot write out the members
> of the struct.
>
> Splitting the typedef and the struct definition into seperate
> statements as it is done for other structs works around this problem.
>
> [1]: http://libvirt.org/html/libvirt-libvirt-host.html#virSecurityLabel
> [2]: http://libvirt.org/html/libvirt-libvirt-host.html#virSecurityModel
> ---
> Seems I had to run "make" twice inside the docs folder before the changes
> were picked up.
>
> Besides, my email address has changed. If this this patch gets ACKed,
> I'd also adjust the AUTHORS file in a separate trivial patch.
>
> include/libvirt/libvirt-host.h | 14 ++++++++------
>   1 file changed, 8 insertions(+), 6 deletions(-)
>

ACK

Michal




More information about the libvir-list mailing list