Commit 542df0f3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Use set_callback() where applicable

parent de772bf4
......@@ -212,7 +212,7 @@ static int vlc_rd_probe_open(vlc_object_t *obj) \
#define VLC_RD_PROBE_SUBMODULE \
add_submodule() \
set_capability("renderer probe", 100) \
set_callbacks(vlc_rd_probe_open, NULL)
set_callback(vlc_rd_probe_open)
/** @} @} */
......
......@@ -223,7 +223,7 @@ VLC_API int vlc_sd_probe_Add(vlc_probe_t *, const char *, const char *, int cate
#define VLC_SD_PROBE_SUBMODULE \
add_submodule() \
set_capability( "services probe", 100 ) \
set_callbacks( vlc_sd_probe_Open, NULL )
set_callback( vlc_sd_probe_Open )
#define VLC_SD_PROBE_HELPER(name, longname, cat) \
static int vlc_sd_probe_Open (vlc_object_t *obj) \
......
......@@ -40,7 +40,7 @@ vlc_module_begin ()
set_shortname( N_("Dummy") )
set_description( N_("Dummy input") )
set_capability( "access", 0 )
set_callbacks( OpenDemux, NULL )
set_callback( OpenDemux )
add_shortcut( "dummy", "vlc" )
vlc_module_end ()
......
......@@ -38,7 +38,7 @@ vlc_module_begin ()
set_subcategory (SUBCAT_INPUT_ACCESS)
set_capability ("access", 0)
set_callbacks (Open, NULL)
set_callback(Open)
add_shortcut ("sdp")
vlc_module_end()
......
......@@ -44,7 +44,7 @@ vlc_module_begin ()
set_category (CAT_INPUT)
set_subcategory (SUBCAT_INPUT_ACCESS)
set_capability ("access", 0)
set_callbacks (Open, NULL)
set_callback(Open)
add_string ("timecode-fps", "25/1", FPS_TEXT, FPS_TEXT, false)
change_string_list (fps_values, fps_texts)
......
......@@ -45,7 +45,7 @@ vlc_module_begin ()
set_category( CAT_SOUT )
set_subcategory( SUBCAT_SOUT_ACO )
add_shortcut( "dummy" )
set_callbacks( Open, NULL )
set_callback( Open )
vlc_module_end ()
......
......@@ -34,7 +34,7 @@ static int Open (vlc_object_t *);
vlc_module_begin ()
set_description (N_("ARM NEON video chroma conversions"))
set_capability ("video converter", 250)
set_callbacks (Open, NULL)
set_callback(Open)
vlc_module_end ()
#define DEFINE_PACK(pack, pict) \
......
......@@ -37,7 +37,7 @@ vlc_module_begin()
set_subcategory(SUBCAT_AUDIO_MISC)
set_description(N_("ARM NEON audio volume"))
set_capability("audio volume", 10)
set_callbacks(Probe, NULL)
set_callback(Probe)
vlc_module_end()
static void AmplifyFloat(audio_volume_t *, block_t *, float);
......
......@@ -35,7 +35,7 @@ static int Open (vlc_object_t *);
vlc_module_begin ()
set_description (N_("ARM NEON video chroma YUV->RGBA"))
set_capability ("video converter", 250)
set_callbacks (Open, NULL)
set_callback(Open)
vlc_module_end ()
/*
......
......@@ -43,7 +43,7 @@ vlc_module_begin ()
set_category( CAT_AUDIO )
set_subcategory( SUBCAT_AUDIO_MISC )
set_capability( "audio converter", 10 )
set_callbacks( OpenFilter, NULL );
set_callback( OpenFilter );
vlc_module_end ()
static block_t *Filter( filter_t *, block_t * );
......
......@@ -49,7 +49,7 @@ vlc_module_begin()
set_category(CAT_AUDIO)
set_subcategory(SUBCAT_AUDIO_MISC)
set_capability("audio converter", 1)
set_callbacks(Open, NULL)
set_callback(Open)
vlc_module_end()
/*****************************************************************************
......
......@@ -36,7 +36,7 @@ vlc_module_begin ()
set_subcategory (SUBCAT_AUDIO_AFILTER)
set_capability ("audio filter", 0)
set_callbacks (Open, NULL)
set_callback(Open)
vlc_module_end ()
static block_t *Process (filter_t *, block_t *);
......
......@@ -49,11 +49,11 @@ vlc_module_begin ()
set_capability( "audio converter", 2 )
set_category( CAT_AUDIO )
set_subcategory( SUBCAT_AUDIO_RESAMPLER )
set_callbacks( Create, NULL )
set_callback( Create )
add_submodule()
set_capability( "audio resampler", 2 )
set_callbacks( CreateResampler, NULL )
set_callback( CreateResampler )
vlc_module_end ()
/*****************************************************************************
......
......@@ -47,7 +47,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_AUDIO_MISC )
set_description( N_("Single precision audio volume") )
set_capability( "audio volume", 10 )
set_callbacks( Create, NULL )
set_callback( Create )
vlc_module_end ()
/**
......
......@@ -37,7 +37,7 @@ vlc_module_begin ()
set_subcategory (SUBCAT_AUDIO_MISC)
set_description (N_("Integer audio volume"))
set_capability ("audio volume", 9)
set_callbacks (Activate, NULL)
set_callback(Activate)
vlc_module_end ()
static void FilterS32N (audio_volume_t *vol, block_t *block, float volume)
......
......@@ -35,7 +35,7 @@ vlc_module_begin ()
set_shortname( N_("Dummy") )
set_description( N_("Dummy audio output") )
set_capability( "audio output", 0 )
set_callbacks( Open, NULL )
set_callback( Open )
add_shortcut( "dummy" )
vlc_module_end ()
......
......@@ -90,7 +90,7 @@ vlc_module_begin ()
add_submodule()
set_capability( "aout stream", 30 )
set_callbacks( StreamStart, NULL )
set_callback( StreamStart )
vlc_module_end ()
typedef struct aout_stream_sys
......
......@@ -125,7 +125,7 @@ vlc_module_begin ()
set_capability( "audio output", 0 )
add_shortcut( "file", "audiofile" )
set_callbacks( Open, NULL )
set_callback( Open )
vlc_module_end ()
static int Start( audio_output_t *p_aout, audio_sample_format_t *restrict fmt )
......
......@@ -647,5 +647,5 @@ vlc_module_begin()
set_capability("aout stream", 50)
set_category(CAT_AUDIO)
set_subcategory(SUBCAT_AUDIO_AOUT)
set_callbacks(Start, NULL)
set_callback(Start)
vlc_module_end()
......@@ -58,7 +58,7 @@ vlc_module_begin ()
add_submodule ()
set_description( N_("Raw audio encoder") )
set_capability( "encoder", 150 )
set_callbacks( EncoderOpen, NULL )
set_callback( EncoderOpen )
#endif
vlc_module_end ()
......
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