[libvirt PATCH] scripts: include function versions in API definition

Michal Prívozník mprivozn at redhat.com
Thu Sep 23 11:04:25 UTC 2021


On 9/23/21 12:47 PM, Daniel P. Berrangé wrote:
> 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
> 
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
>  scripts/apibuild.py | 68 +++++++++++++++++++++++++++++++++++++++++----
>  1 file changed, 62 insertions(+), 6 deletions(-)

Reviewed-by: Michal Privoznik <mprivozn at redhat.com>

Michal




More information about the libvir-list mailing list