Changeset 696d57444256a66823a493de08274ca6316ebf8e

Show
Ignore:
Timestamp:
05/27/08 19:59:26 (3 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1211911166 +0300
git-parent:

[1809597bc557b8a0828b44ff6279c4e0598116ef]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1211911156 +0300
Message:

Fix HTTP interface with --disable-vlm

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/control/http/http.c

    rc0a898e r696d574  
    339339    intf_thread_t *p_intf = (intf_thread_t *)p_this; 
    340340    intf_sys_t    *p_sys = p_intf->p_sys; 
    341  
    342341    int i; 
    343342 
     343#ifdef ENABLE_VLM 
    344344    if( p_sys->p_vlm ) 
    345     { 
    346345        vlm_Delete( p_sys->p_vlm ); 
    347     } 
     346#endif 
    348347    for( i = 0; i < p_sys->i_files; i++ ) 
    349348    { 
  • modules/control/http/macro.c

    r2d025a3 r696d574  
    531531                    break; 
    532532                } 
     533#ifdef ENABLE_VLM 
    533534                /* vlm */ 
    534535                case MVLC_VLM_NEW: 
     
    680681                    break; 
    681682                } 
    682  
     683#endif /* ENABLE_VLM */ 
    683684                default: 
    684685                    if( *control ) 
     
    10441045                                                         m.param2 ); 
    10451046                        } 
     1047#ifdef ENABLE_VLM 
    10461048                        else if( !strcmp( m.param2, "vlm" ) ) 
    10471049                        { 
     
    10501052                            index = mvar_VlmSetNew( m.param1, p_intf->p_sys->p_vlm ); 
    10511053                        } 
     1054#endif 
    10521055#if 0 
    10531056                        else if( !strcmp( m.param2, "hosts" ) ) 
  • modules/control/http/mvar.c

    r1809597 r696d574  
    669669{ 
    670670    mvar_t        *s = mvar_New( name, "set" ); 
     671#ifdef ENABLE_VLM 
    671672    vlm_message_t *msg; 
    672673    int    i; 
     
    675676 
    676677    if( vlm_ExecuteCommand( vlm, "show", &msg ) ) 
    677     { 
    678         return s; 
    679     } 
     678        return s; 
    680679 
    681680    for( i = 0; i < msg->i_child; i++ ) 
     
    703702    } 
    704703    vlm_MessageDelete( msg ); 
    705  
     704#endif /* ENABLE_VLM */ 
    706705    return s; 
    707706} 
  • modules/control/http/rpn.c

    r6300760 r696d574  
    10071007            free( psz_val ); 
    10081008        } 
     1009#ifdef ENABLE_VLM 
    10091010        else if( !strcmp( s, "vlm_command" ) || !strcmp( s, "vlm_cmd" ) ) 
    10101011        { 
     
    10571058            free( psz_error ); 
    10581059        } 
     1060#endif /* ENABLE_VLM */ 
    10591061        else if( !strcmp( s, "snapshot" ) ) 
    10601062        {