Commit 2bb92db6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove __ prefix in *New() core functions

parent d8ab9e3d
......@@ -121,9 +121,9 @@ void aout_OutputDelete( aout_instance_t * p_aout );
/* From common.c : */
#define aout_New(a) __aout_New(VLC_OBJECT(a))
/* Release with vlc_object_release() */
aout_instance_t * __aout_New ( vlc_object_t * );
aout_instance_t *aout_New ( vlc_object_t * );
#define aout_New(a) aout_New(VLC_OBJECT(a))
void aout_FifoInit( vlc_object_t *, aout_fifo_t *, uint32_t );
#define aout_FifoInit(o, f, r) aout_FifoInit(VLC_OBJECT(o), f, r)
......
......@@ -43,10 +43,11 @@
/* Local functions */
static void aout_Destructor( vlc_object_t * p_this );
#undef aout_New
/*****************************************************************************
* aout_New: initialize aout structure
*****************************************************************************/
aout_instance_t * __aout_New( vlc_object_t * p_parent )
aout_instance_t *aout_New( vlc_object_t * p_parent )
{
aout_instance_t * p_aout;
......
......@@ -46,12 +46,13 @@ static char *get_path(const char *location)
return path;
}
#undef access_New
/*****************************************************************************
* access_New:
*****************************************************************************/
access_t *__access_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
const char *psz_access, const char *psz_demux,
const char *psz_location )
access_t *access_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
const char *psz_access, const char *psz_demux,
const char *psz_location )
{
access_t *p_access = vlc_custom_create( p_obj, sizeof (*p_access),
"access" );
......
......@@ -28,10 +28,10 @@
#include <vlc_common.h>
#include <vlc_access.h>
#define access_New( a, b, c, d, e ) __access_New(VLC_OBJECT(a), b, c, d, e )
access_t * __access_New( vlc_object_t *p_obj, input_thread_t *p_input,
const char *psz_access, const char *psz_demux,
const char *psz_path );
access_t *access_New( vlc_object_t *p_obj, input_thread_t *p_input,
const char *psz_access, const char *psz_demux,
const char *psz_path );
#define access_New( a, b, c, d, e ) access_New(VLC_OBJECT(a), b, c, d, e )
void access_Delete( access_t * );
#endif
......
......@@ -52,15 +52,15 @@ static char *get_path(const char *location)
return path;
}
#undef demux_New
/*****************************************************************************
* demux_New:
* if s is NULL then load a access_demux
*****************************************************************************/
demux_t *__demux_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
const char *psz_access, const char *psz_demux,
const char *psz_location,
stream_t *s, es_out_t *out, bool b_quick )
demux_t *demux_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
const char *psz_access, const char *psz_demux,
const char *psz_location,
stream_t *s, es_out_t *out, bool b_quick )
{
demux_t *p_demux = vlc_custom_create( p_obj, sizeof( *p_demux ), "demux" );
const char *psz_module;
......
......@@ -31,8 +31,8 @@
#include "stream.h"
/* stream_t *s could be null and then it mean a access+demux in one */
#define demux_New( a, b, c, d, e, f, g, h ) __demux_New(VLC_OBJECT(a),b,c,d,e,f,g,h)
demux_t *__demux_New( vlc_object_t *p_obj, input_thread_t *p_parent_input, const char *psz_access, const char *psz_demux, const char *psz_path, stream_t *s, es_out_t *out, bool );
demux_t *demux_New( vlc_object_t *p_obj, input_thread_t *p_parent_input, const char *psz_access, const char *psz_demux, const char *psz_path, stream_t *s, es_out_t *out, bool );
#define demux_New( a, b, c, d, e, f, g, h ) demux_New(VLC_OBJECT(a),b,c,d,e,f,g,h)
void demux_Delete( demux_t * );
......
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