]> xenbits.xensource.com Git - libvirt.git/commit
scripts: include function versions in API definition
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 23 Sep 2021 10:40:01 +0000 (11:40 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 23 Sep 2021 15:30:18 +0000 (16:30 +0100)
commite0e0bf662896240f2293eb60e23d2570f110fa5a
tree7220fa8ecb775506b60879e0969cdc2fd6c9edaf
parent4a6d8749464f7df60dab0ec44902533040b6d718
scripts: include function versions in API definition

In order to auto-generate more of the language binding code, it is
desirable to know what libvirt version an API was introduced in.
We can extract this information from the .syms files and expose
it in the API description

eg instead of

  <function name='virNodeNumOfDevices' file='libvirt-nodedev'
            module='libvirt-nodedev'>

we now have

  <function name='virNodeNumOfDevices' file='libvirt-nodedev'
            module='libvirt-nodedev' version='0.5.0'>

This will benefit this proposal:

  https://gitlab.com/libvirt/libvirt-go-module/-/merge_requests/7

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