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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  scripts/apibuild.py | 68 +++++++++++++++++++++++++++++++++++++++++----
>  1 file changed, 62 insertions(+), 6 deletions(-)

Reviewed-by: Michal Privoznik <mprivozn@xxxxxxxxxx>

Michal




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux