/*****************************************************************************
* vlc_access.h: Access descriptor, queries and methods
*****************************************************************************
- * Copyright (C) 1999-2004 the VideoLAN team
+ * Copyright (C) 1999-2006 the VideoLAN team
* $Id$
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
#ifndef _VLC_ACCESS_H
#define _VLC_ACCESS_H 1
+#include <vlc_block.h>
+
/**
* \defgroup access Access
* @{
access_t *p_source;
/* Access can fill this entry to force a demuxer
- * XXX: fill it once you know for sure you will succed
+ * XXX: fill it once you know for sure you will succeed
* (if you fail, this value won't be reseted */
char *psz_demux;
access_sys_t *p_sys;
};
-#define access2_New( a, b, c, d, e ) __access2_New(VLC_OBJECT(a), b, c, d, e )
-VLC_EXPORT( access_t *, __access2_New, ( vlc_object_t *p_obj, char *psz_access, char *psz_demux, char *psz_path, vlc_bool_t b_quick ) );
-VLC_EXPORT( access_t *, access2_FilterNew, ( access_t *p_source, char *psz_access_filter ) );
-VLC_EXPORT( void, access2_Delete, ( access_t * ) );
-
static inline int access2_vaControl( access_t *p_access, int i_query, va_list args )
{
if( !p_access ) return VLC_EGENERIC;
return p_access->pf_control( p_access, i_query, args );
}
+
static inline int access2_Control( access_t *p_access, int i_query, ... )
{
va_list args;