+static inline uint64_t var_OrInteger( vlc_object_t *obj, const char *name,
+ unsigned v )
+{
+ vlc_value_t val;
+ val.i_int = v;
+ var_GetAndSet( obj, name, VLC_VAR_INTEGER_OR, &val );
+ return val.i_int;
+}
+#define var_OrInteger(a,b,c) var_OrInteger(VLC_OBJECT(a),b,c)
+
+static inline uint64_t var_NAndInteger( vlc_object_t *obj, const char *name,
+ unsigned v )
+{
+ vlc_value_t val;
+ val.i_int = v;
+ var_GetAndSet( obj, name, VLC_VAR_INTEGER_NAND, &val );
+ return val.i_int;
+}
+#define var_NAndInteger(a,b,c) var_NAndInteger(VLC_OBJECT(a),b,c)
+