/*****************************************************************************
* buffer.h: MMS access plug-in
*****************************************************************************
- * Copyright (C) 2001, 2002 VideoLAN
- * $Id: buffer.h,v 1.2 2002/11/25 00:22:04 fenrir Exp $
+ * Copyright (C) 2001, 2002 the VideoLAN team
+ * $Id$
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-typedef struct var_buffer_s
+typedef struct
{
uint8_t *p_data; // pointer on data
int i_data; // number of bytes set in p_data
/*****************************************************************************
- * Macro/Function to create/manipulate buffer
+ * Macro/Function to create/manipulate buffer
*****************************************************************************/
int var_buffer_initwrite( var_buffer_t *p_buf, int i_default_size );
int var_buffer_reinitwrite( var_buffer_t *p_buf, int i_default_size );
void var_buffer_add32( var_buffer_t *p_buf, uint32_t i_word );
void var_buffer_add64( var_buffer_t *p_buf, uint64_t i_word );
void var_buffer_addmemory( var_buffer_t *p_buf, void *p_mem, int i_mem );
-void var_buffer_addUTF16( var_buffer_t *p_buf, char *p_str );
+void var_buffer_addUTF16( var_buffer_t *p_buf, const char *p_str );
void var_buffer_free( var_buffer_t *p_buf );