[vlc-devel] [PATCH 1/6] plugin: add meta-data for plugin API version
Thomas Guillem
thomas at gllm.fr
Fri Jul 19 08:34:53 CEST 2019
OK for the set.
On Thu, Jul 18, 2019, at 21:29, RĂ©mi Denis-Courmont wrote:
> This is a little bit more flexible than forcing a specific entry point
> name dependent on the version.
> ---
> include/vlc_plugin.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
> index ee9aa18e96..750be18deb 100644
> --- a/include/vlc_plugin.h
> +++ b/include/vlc_plugin.h
> @@ -190,6 +190,7 @@ enum vlc_module_properties
> */
> # define MODULE_SYMBOL 4_0_4
> # define MODULE_SUFFIX "__4_0_4"
> +#define VLC_API_VERSION_STRING "4.0.4"
>
> /*****************************************************************************
> * Add a few defines. You do not want to read this section. Really.
> @@ -505,6 +506,9 @@ VLC_METADATA_EXPORTS
> return value; \
> }
>
> +#define VLC_API_VERSION_EXPORT \
> + VLC_META_EXPORT(api_version, VLC_API_VERSION_STRING)
> +
> #define VLC_COPYRIGHT_VIDEOLAN \
> "\x43\x6f\x70\x79\x72\x69\x67\x68\x74\x20\x28\x43\x29\x20\x74\x68" \
> "\x65\x20\x56\x69\x64\x65\x6f\x4c\x41\x4e\x20\x56\x4c\x43\x20\x6d" \
> @@ -542,6 +546,7 @@ VLC_METADATA_EXPORTS
> #endif
>
> #define VLC_METADATA_EXPORTS \
> + VLC_API_VERSION_EXPORT \
> VLC_COPYRIGHT_EXPORT \
> VLC_LICENSE_EXPORT
>
> --
> 2.22.0
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list