Commit 5a079f61 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

stream: remove leading underscores

parent 6bf37456
......@@ -176,15 +176,16 @@ VLC_EXPORT( void, stream_DemuxSend, ( stream_t *s, block_t *p_block ) );
* Create a stream_t reading from memory.
* You must delete it using stream_Delete.
*/
#define stream_MemoryNew( a, b, c, d ) __stream_MemoryNew( VLC_OBJECT(a), b, c, d )
VLC_EXPORT( stream_t *,__stream_MemoryNew, (vlc_object_t *p_obj, uint8_t *p_buffer, uint64_t i_size, bool b_preserve_memory ) );
VLC_EXPORT( stream_t *, stream_MemoryNew, (vlc_object_t *p_obj, uint8_t *p_buffer, uint64_t i_size, bool b_preserve_memory ) );
#define stream_MemoryNew( a, b, c, d ) stream_MemoryNew( VLC_OBJECT(a), b, c, d )
/**
* Create a stream_t reading from an URL.
* You must delete it using stream_Delete.
*/
#define stream_UrlNew( a, b ) __stream_UrlNew( VLC_OBJECT(a), b )
VLC_EXPORT( stream_t *,__stream_UrlNew, (vlc_object_t *p_this, const char *psz_url ) );
VLC_EXPORT( stream_t *, stream_UrlNew, (vlc_object_t *p_this, const char *psz_url ) );
#define stream_UrlNew( a, b ) stream_UrlNew( VLC_OBJECT(a), b )
/**
* Try to add a stream filter to an open stream.
......
......@@ -243,10 +243,11 @@ void stream_CommonDelete( stream_t *s )
vlc_object_release( s );
}
#undef stream_UrlNew
/****************************************************************************
* stream_UrlNew: create a stream from a access
****************************************************************************/
stream_t *__stream_UrlNew( vlc_object_t *p_parent, const char *psz_url )
stream_t *stream_UrlNew( vlc_object_t *p_parent, const char *psz_url )
{
const char *psz_access, *psz_demux;
char *psz_path;
......
......@@ -41,6 +41,7 @@ static int Peek ( stream_t *, const uint8_t **pp_peek, unsigned int i_read );
static int Control( stream_t *, int i_query, va_list );
static void Delete ( stream_t * );
#undef stream_MemoryNew
/**
* Create a stream from a memory buffer
*
......@@ -50,8 +51,8 @@ static void Delete ( stream_t * );
* \param i_preserve_memory if this is set to false the memory buffer
* pointed to by p_buffer is freed on stream_Destroy
*/
stream_t *__stream_MemoryNew( vlc_object_t *p_this, uint8_t *p_buffer,
uint64_t i_size, bool i_preserve_memory )
stream_t *stream_MemoryNew( vlc_object_t *p_this, uint8_t *p_buffer,
uint64_t i_size, bool i_preserve_memory )
{
stream_t *s = stream_CommonNew( p_this );
stream_sys_t *p_sys;
......
......@@ -399,11 +399,11 @@ stream_Delete
stream_DemuxNew
stream_DemuxSend
stream_FilterNew
__stream_MemoryNew
stream_MemoryNew
stream_Peek
stream_Read
stream_ReadLine
__stream_UrlNew
stream_UrlNew
stream_vaControl
__str_format
__str_format_meta
......
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