}
#define var_InheritTime(o, n) var_InheritTime(VLC_OBJECT(o), n)
+static inline void *var_InheritAddress( vlc_object_t *obj, const char *name )
+{
+ vlc_value_t val;
+
+ if( var_Inherit( obj, name, VLC_VAR_ADDRESS, &val ) )
+ val.p_address = NULL;
+ return val.p_address;
+}
+#define var_InheritAddress(o, n) var_InheritAddress(VLC_OBECT(o), n)
+
VLC_EXPORT( int, var_InheritURational, ( vlc_object_t *, unsigned *num, unsigned *den, const char *var ) );
#define var_InheritURational(a,b,c,d) var_InheritURational(VLC_OBJECT(a), b, c, d)
case VLC_VAR_BOOL:
p_val->b_bool = config_GetInt( p_this, psz_name );
break;
+ case VLC_VAR_ADDRESS:
+ return VLC_ENOOBJ;
default:
msg_Warn( p_this, "Could not inherit value for var %s "
"from config. Invalid Type", psz_name );