Commit d6bfdcd0 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Rémi Denis-Courmont

typedef va_arg function pointers to avoid compiler parse errors

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 435bc668
...@@ -152,6 +152,8 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...) ...@@ -152,6 +152,8 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
{ {
va_list ap; va_list ap;
int ret = 0; int ret = 0;
typedef int(*int_fp_vlcobjectt)(vlc_object_t *) ;
typedef void(*void_fp_vlcobjectt)(vlc_object_t *);
va_start (ap, propid); va_start (ap, propid);
switch (propid) switch (propid)
...@@ -195,11 +197,11 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...) ...@@ -195,11 +197,11 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
break; break;
case VLC_MODULE_CB_OPEN: case VLC_MODULE_CB_OPEN:
module->pf_activate = va_arg (ap, int (*) (vlc_object_t *)); module->pf_activate = va_arg (ap, int_fp_vlcobjectt);
break; break;
case VLC_MODULE_CB_CLOSE: case VLC_MODULE_CB_CLOSE:
module->pf_deactivate = va_arg (ap, void (*) (vlc_object_t *)); module->pf_deactivate = va_arg (ap, void_fp_vlcobjectt);
break; break;
case VLC_MODULE_NO_UNLOAD: case VLC_MODULE_NO_UNLOAD:
......
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