[vlc-devel] commit: Include copyright and license message in each plugin ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Jun 7 21:33:29 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Jun  7 22:35:15 2008 +0300| [bc3065cce85a957d079b9addd0cc5bd26935c7ba]

Include copyright and license message in each plugin

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

 include/vlc_plugin.h |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
index b589300..ffcc0f5 100644
--- a/include/vlc_plugin.h
+++ b/include/vlc_plugin.h
@@ -107,7 +107,8 @@ E_(vlc_entry) ( module_t *p_module );
                                                                               \
     error:                                                                    \
         return VLC_EGENERIC;                                                  \
-    }
+    }                                                                         \
+    VLC_METADATA_EXPORTS
 
 #define add_submodule( ) \
     p_submodule = vlc_submodule_create( p_module );
@@ -448,4 +449,25 @@ enum vlc_config_properties
 #define change_safe() \
     vlc_config_set (p_config, VLC_CONFIG_SAFE);
 
+/* Meta data plugin exports */
+#define VLC_META_EXPORT( name, value ) \
+    EXTERN_SYMBOL DLL_SYMBOL int CDECL_SYMBOL \
+    __VLC_SYMBOL(vlc_entry_ ## name) (void) \
+    { \
+         return value; \
+    }
+
+#if defined (__LIBVLC__)
+# define VLC_COPYRIGHT_EXPORT VLC_META_EXPORT (copyright, COPYRIGHT_MESSAGE)
+#elif !defined (VLC_COPYRIGHT_EXPORT)
+# define VLC_COPYRIGHT_EXPORT
+#endif
+#define VLC_LICENSE_EXPORT VLC_META_EXPORT (license, \
+    "Licensed under the terms of the GNU General Public License, " \
+    "version 2 or later.")
+
+#define VLC_METADATA_EXPORTS \
+    VLC_COPYRIGHT_EXPORT \
+    VLC_LICENSE_EXPORT
+
 #endif




More information about the vlc-devel mailing list