[vlc-commits] plugin: add meta-data for plugin API version

Rémi Denis-Courmont git at videolan.org
Fri Jul 19 18:21:40 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 18 20:34:19 2019 +0300| [23a62109b7f20610c7880fcb56e4874500449763] | committer: Rémi Denis-Courmont

plugin: add meta-data for plugin API version

This is a little bit more flexible than forcing a specific entry point
name dependent on the version.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=23a62109b7f20610c7880fcb56e4874500449763
---

 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
 



More information about the vlc-commits mailing list