vlc_modules: remove _Generic for vlc_module_load()

We don't need it anymore, we always pass a logger.
This commit is contained in:
Steve Lhomme 2023-10-17 13:41:21 +02:00
parent 05925322f3
commit b1e349d74b
1 changed files with 0 additions and 11 deletions

View File

@ -94,17 +94,6 @@ void *vlc_module_map(struct vlc_logger *log, module_t *mod);
VLC_API module_t *vlc_module_load(struct vlc_logger *log, const char *cap,
const char *name, bool strict,
vlc_activate_t probe, ... ) VLC_USED;
#ifndef __cplusplus
#define vlc_module_load(ctx, cap, name, strict, ...) \
_Generic ((ctx), \
struct vlc_logger *: \
vlc_module_load((void *)(ctx), cap, name, strict, __VA_ARGS__), \
void *: \
vlc_module_load((void *)(ctx), cap, name, strict, __VA_ARGS__), \
default: \
vlc_module_load(vlc_object_logger((vlc_object_t *)(ctx)), cap, \
name, strict, __VA_ARGS__))
#endif
VLC_API module_t * module_need( vlc_object_t *, const char *, const char *, bool ) VLC_USED;
#define module_need(a,b,c,d) module_need(VLC_OBJECT(a),b,c,d)