mirror of https://code.videolan.org/videolan/vlc
vlc_modules: remove _Generic for vlc_module_load()
We don't need it anymore, we always pass a logger.
This commit is contained in:
parent
05925322f3
commit
b1e349d74b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue