]> git.sesse.net Git - vlc/commitdiff
Add new var_Change action: VLC_VAR_SETISCOMMAND. Previously it was only
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 7 Jun 2008 22:00:01 +0000 (00:00 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Mon, 9 Jun 2008 08:05:35 +0000 (10:05 +0200)
possible to set this attribute at variable creation time (and for some
reason I don't understand that didn't work in one case so I added this
work arround :p)

include/vlc_variables.h
src/misc/variables.c

index be20c47f0bc5a82c262225cb71303be357b439d7..04196fdd86aae28c5447c02cf2cbfc24546d0204 100644 (file)
 
 #define VLC_VAR_INHERITVALUE        0x0030
 #define VLC_VAR_TRIGGER_CALLBACKS   0x0035
+
+#define VLC_VAR_SETISCOMMAND        0x0040
 /**@}*/
 
 /*****************************************************************************
index 2bd20558deace8af349713b4ef0e9eb2b4affc52..45d15cfe5ed62e529fab1dd2d220f97df23f7c26 100644 (file)
@@ -710,6 +710,10 @@ int __var_Change( vlc_object_t *p_this, const char *psz_name,
             }
             break;
 
+        case VLC_VAR_SETISCOMMAND:
+            p_var->i_type |= VLC_VAR_ISCOMMAND;
+            break;
+
         default:
             break;
     }