]> git.sesse.net Git - vlc/blobdiff - include/modules_inner.h
* stream_output.h: added a vlc_meta_t field to sout_instance_t,
[vlc] / include / modules_inner.h
index 7e0b128a187439048c3235257f3f39c929b2dde5..fe532b6c70fe25cd84028375014fef819b40c783 100644 (file)
@@ -2,7 +2,7 @@
  * modules_inner.h : Macros used from within a module.
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: modules_inner.h,v 1.41 2003/12/13 17:16:11 gbazin Exp $
+ * $Id: modules_inner.h,v 1.43 2004/01/09 12:23:47 gbazin Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -58,7 +58,7 @@
 #   define DECLARE_SYMBOLS         struct _u_n_u_s_e_d_
 #   define STORE_SYMBOLS           struct _u_n_u_s_e_d_
 #elif defined( __PLUGIN__ )
-#   define E_( function )          function
+#   define E_( function )          CONCATENATE( function, MODULE_SYMBOL )
 #   define __VLC_SYMBOL( symbol  ) CONCATENATE( symbol, MODULE_SYMBOL )
 #   define DECLARE_SYMBOLS         module_symbols_t* p_symbols
 #   define STORE_SYMBOLS           p_symbols = p_module->p_symbols
@@ -93,6 +93,7 @@
     {                                                                         \
         int i_shortcut = 1, i_config = -1;                                    \
         module_config_t *p_config = NULL;                                     \
+        static module_config_t config_end = {CONFIG_HINT_END};            \
         STORE_SYMBOLS;                                                        \
         p_module->b_submodule = VLC_FALSE;                                    \
         p_module->b_unloadable = VLC_TRUE;                                    \
         }                                                                     \
         if( p_config )                                                        \
         {                                                                     \
-            p_config[ ++i_config ] = (module_config_t){ CONFIG_HINT_END };    \
+            p_config[ ++i_config ] = config_end;                              \
             config_Duplicate( p_module, p_config );                           \
             free( p_config );                                                 \
         }                                                                     \
-        else config_Duplicate(p_module, &(module_config_t){CONFIG_HINT_END}); \
+        else config_Duplicate( p_module, &config_end );                       \
         if( p_module->p_config == NULL )                                      \
         {                                                                     \
             return VLC_EGENERIC;                                              \