Add information about variables having choices to the "vars" command.
authorAntoine Cellerier <dionoea@videolan.org>
Tue, 26 Aug 2008 21:10:49 +0000 (23:10 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Tue, 26 Aug 2008 23:06:33 +0000 (01:06 +0200)
src/misc/objects.c

index a05677f..8e35be1 100644 (file)
@@ -991,7 +991,7 @@ static int DumpCommand( vlc_object_t *p_this, char const *psz_cmd,
     (void)oldval; (void)p_data;
     if( *psz_cmd == 'l' )
     {
-        vlc_object_t *root = VLC_OBJECT (vlc_global ()), *cur = root; 
+        vlc_object_t *root = VLC_OBJECT (vlc_global ()), *cur = root;
 
         vlc_mutex_lock( &structure_lock );
         do
@@ -1079,6 +1079,8 @@ static int DumpCommand( vlc_object_t *p_this, char const *psz_cmd,
                 if( p_var->psz_text )
                     printf( ", %s", p_var->psz_text );
                 printf( ")" );
+                if( p_var->i_type & VLC_VAR_HASCHOICE )
+                    printf( ", has choices" );
                 if( p_var->i_type & VLC_VAR_ISCOMMAND )
                     printf( ", command" );
                 if( p_var->i_entries )