Re: [Libguestfs] [PATCH 4/9] backend: Add a .plugin_name method.

Eric Blake
Wed, 17 Jan 2018 22:14:56 -0000

On 01/17/2018 02:53 PM, Richard W.M. Jones wrote:
> This returns the plugin name, which for plugins is the same as the
> ordinary .name method (but for filters will be different).
> ---

Just as .name and .plugin_name can differ for filters, should we also
have a way to report independent version numbers (via .version) for the
filter, compared to the version of the underlying plugin (via
.plugin_version)?

> +++ b/src/plugins.c
> @@ -465,6 +465,7 @@ static struct backend plugin_functions = {
>    .free = plugin_free,
>    .thread_model = plugin_thread_model,
>    .name = plugin_name,
> +  .plugin_name = plugin_name,
>    .usage = plugin_usage,
>    .version = plugin_version,
>    .dump_fields = plugin_dump_fields,
>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org