]> git.ipfire.org Git - thirdparty/libvirt.git/commit
scripts: emit enum parameters in API build description
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 19 May 2020 11:30:57 +0000 (12:30 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 22 May 2020 10:32:55 +0000 (11:32 +0100)
commit38f3fa61400dc087266a49cdc2499bb39dcf9b9b
treead22ab80866b0da737660b9b9dc7cd3dc3c4cd2b
parent34204f992316611cf5105afb131f2f1054279660
scripts: emit enum parameters in API build description

Currently the information about enums in the API document lacks any
mention of parameters, so it is impossible to tell what kind of enum
declaration is present in the libvirt API header. With this change

  <macro name='LIBVIR_CHECK_VERSION' file='libvirt-common'>
  <macro name='VIR_COPY_CPUMAP' file='libvirt-domain'>
  ...snip...

becomes

  <macro name='LIBVIR_CHECK_VERSION' file='libvirt-common' params='major,minor,micro'>
  <macro name='VIR_COPY_CPUMAP' file='libvirt-domain' params='cpumaps,maplen,vcpu,cpumap'>
  ...snip...

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
scripts/apibuild.py