/*****************************************************************************
* vlc_stream.h
*****************************************************************************
- * Copyright (C) 1999-2004 VideoLAN
+ * Copyright (C) 1999-2004 the VideoLAN team
* $Id$
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
#ifndef _VLC_STREAM_H
#define _VLC_STREAM_H 1
+# ifdef __cplusplus
+extern "C" {
+# endif
+
/**
* \defgroup stream Stream
*
/* Special for direct access control from demuxer.
* XXX: avoid using it by all means */
- STREAM_CONTROL_ACCESS, /* arg1= int i_access_query, args res: can fail
- if access unreachable or access control answer */
+ STREAM_CONTROL_ACCESS /* arg1= int i_access_query, args res: can fail
+ if access unreachable or access control answer */
};
/**
#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, int64_t i_size, vlc_bool_t i_preserve_memory ) );
#define stream_UrlNew( a, b ) __stream_UrlNew( VLC_OBJECT(a), b )
-VLC_EXPORT( stream_t *,__stream_UrlNew, (vlc_object_t *p_this, char *psz_url ) );
+VLC_EXPORT( stream_t *,__stream_UrlNew, (vlc_object_t *p_this, const char *psz_url ) );
/**
* @}
*/
+# ifdef __cplusplus
+}
+# endif
+
#endif