Commit bc3065cc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Include copyright and license message in each plugin

parent b19b0c51
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment