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

Get rid of useless p_symbols

parent aaab472c
...@@ -95,10 +95,10 @@ struct module_t ...@@ -95,10 +95,10 @@ struct module_t
vlc_bool_t b_builtin; /* Set to true if the module is built in */ vlc_bool_t b_builtin; /* Set to true if the module is built in */
vlc_bool_t b_loaded; /* Set to true if the dll is loaded */ vlc_bool_t b_loaded; /* Set to true if the dll is loaded */
/* #ifndef HAVE_SHARED_LIBVLC
* Symbol table we send to the module so that it can access vlc symbols /* Legacy symbols table */
*/
module_symbols_t *p_symbols; module_symbols_t *p_symbols;
#endif
}; };
/***************************************************************************** /*****************************************************************************
...@@ -129,5 +129,5 @@ enum ...@@ -129,5 +129,5 @@ enum
VLC_MODULE_CB_OPEN, VLC_MODULE_CB_OPEN,
VLC_MODULE_CB_CLOSE, VLC_MODULE_CB_CLOSE,
VLC_MODULE_UNLOADABLE VLC_MODULE_UNLOADABLE
} vlc_module_property_t; };
...@@ -59,12 +59,16 @@ ...@@ -59,12 +59,16 @@
#if defined( __BUILTIN__ ) #if defined( __BUILTIN__ )
# define E_( function ) CONCATENATE( function, MODULE_NAME ) # define E_( function ) CONCATENATE( function, MODULE_NAME )
# define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME )
# define DECLARE_SYMBOLS struct _u_n_u_s_e_d_
# define STORE_SYMBOLS struct _u_n_u_s_e_d_
#elif defined( __PLUGIN__ ) #elif defined( __PLUGIN__ )
# define E_( function ) CONCATENATE( function, MODULE_SYMBOL ) # define E_( function ) CONCATENATE( function, MODULE_SYMBOL )
# define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_SYMBOL ) # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_SYMBOL )
# define DECLARE_SYMBOLS module_symbols_t* p_symbols #endif
#if defined( __BUILTIN__ ) || defined( HAVE_SHARED_LIBVLC )
# define DECLARE_SYMBOLS struct _u_n_u_s_e_d_
# define STORE_SYMBOLS struct _u_n_u_s_e_d_
#else
# define DECLARE_SYMBOLS module_symbols_t* p_symbols = NULL
# define STORE_SYMBOLS p_symbols = p_module->p_symbols # define STORE_SYMBOLS p_symbols = p_module->p_symbols
#endif #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