/*****************************************************************************
* variables.h: variables handling
*****************************************************************************
- * Copyright (C) 2002-2004 VideoLAN
+ * Copyright (C) 2002-2004 the VideoLAN team
* $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
* 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.
*****************************************************************************/
/**
VLC_EXPORT( int, __var_Set, ( vlc_object_t *, const char *, vlc_value_t ) );
VLC_EXPORT( int, __var_Get, ( vlc_object_t *, const char *, vlc_value_t * ) );
+#define var_OptionParse(a,b) __var_OptionParse( VLC_OBJECT( a ) , b )
+VLC_EXPORT( void, __var_OptionParse, ( vlc_object_t *, const char * ) );
+
/**
* __var_Create() with automatic casting.
*/
*/
static inline int __var_GetInteger( vlc_object_t *p_obj, const char *psz_name )
{
- vlc_value_t val;
+ vlc_value_t val;val.i_int = 0;
if( !__var_Get( p_obj, psz_name, &val ) )
return val.i_int;
else
*/
static inline int __var_GetBool( vlc_object_t *p_obj, const char *psz_name )
{
- vlc_value_t val;
+ vlc_value_t val; val.b_bool = VLC_FALSE;
if( !__var_Get( p_obj, psz_name, &val ) )
return val.b_bool;
else
*/
static inline int64_t __var_GetTime( vlc_object_t *p_obj, const char *psz_name )
{
- vlc_value_t val;
+ vlc_value_t val; val.i_time = 0L;
if( !__var_Get( p_obj, psz_name, &val ) )
return val.i_time;
else
*/
static inline float __var_GetFloat( vlc_object_t *p_obj, const char *psz_name )
{
- vlc_value_t val;
+ vlc_value_t val; val.f_float = 0.0;
if( !__var_Get( p_obj, psz_name, &val ) )
return val.f_float;
else
*/
static inline char *__var_GetString( vlc_object_t *p_obj, const char *psz_name )
{
- vlc_value_t val;
+ vlc_value_t val; val.psz_string = NULL;
if( !__var_Get( p_obj, psz_name, &val ) )
return val.psz_string;
else