Changeset 696d57444256a66823a493de08274ca6316ebf8e
- 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
| rc0a898e |
r696d574 |
|
| 339 | 339 | intf_thread_t *p_intf = (intf_thread_t *)p_this; |
|---|
| 340 | 340 | intf_sys_t *p_sys = p_intf->p_sys; |
|---|
| 341 | | |
|---|
| 342 | 341 | int i; |
|---|
| 343 | 342 | |
|---|
| | 343 | #ifdef ENABLE_VLM |
|---|
| 344 | 344 | if( p_sys->p_vlm ) |
|---|
| 345 | | { |
|---|
| 346 | 345 | vlm_Delete( p_sys->p_vlm ); |
|---|
| 347 | | } |
|---|
| | 346 | #endif |
|---|
| 348 | 347 | for( i = 0; i < p_sys->i_files; i++ ) |
|---|
| 349 | 348 | { |
|---|
| r2d025a3 |
r696d574 |
|
| 531 | 531 | break; |
|---|
| 532 | 532 | } |
|---|
| | 533 | #ifdef ENABLE_VLM |
|---|
| 533 | 534 | /* vlm */ |
|---|
| 534 | 535 | case MVLC_VLM_NEW: |
|---|
| … | … | |
| 680 | 681 | break; |
|---|
| 681 | 682 | } |
|---|
| 682 | | |
|---|
| | 683 | #endif /* ENABLE_VLM */ |
|---|
| 683 | 684 | default: |
|---|
| 684 | 685 | if( *control ) |
|---|
| … | … | |
| 1044 | 1045 | m.param2 ); |
|---|
| 1045 | 1046 | } |
|---|
| | 1047 | #ifdef ENABLE_VLM |
|---|
| 1046 | 1048 | else if( !strcmp( m.param2, "vlm" ) ) |
|---|
| 1047 | 1049 | { |
|---|
| … | … | |
| 1050 | 1052 | index = mvar_VlmSetNew( m.param1, p_intf->p_sys->p_vlm ); |
|---|
| 1051 | 1053 | } |
|---|
| | 1054 | #endif |
|---|
| 1052 | 1055 | #if 0 |
|---|
| 1053 | 1056 | else if( !strcmp( m.param2, "hosts" ) ) |
|---|
| r1809597 |
r696d574 |
|
| 669 | 669 | { |
|---|
| 670 | 670 | mvar_t *s = mvar_New( name, "set" ); |
|---|
| | 671 | #ifdef ENABLE_VLM |
|---|
| 671 | 672 | vlm_message_t *msg; |
|---|
| 672 | 673 | int i; |
|---|
| … | … | |
| 675 | 676 | |
|---|
| 676 | 677 | if( vlm_ExecuteCommand( vlm, "show", &msg ) ) |
|---|
| 677 | | { |
|---|
| 678 | | return s; |
|---|
| 679 | | } |
|---|
| | 678 | return s; |
|---|
| 680 | 679 | |
|---|
| 681 | 680 | for( i = 0; i < msg->i_child; i++ ) |
|---|
| … | … | |
| 703 | 702 | } |
|---|
| 704 | 703 | vlm_MessageDelete( msg ); |
|---|
| 705 | | |
|---|
| | 704 | #endif /* ENABLE_VLM */ |
|---|
| 706 | 705 | return s; |
|---|
| 707 | 706 | } |
|---|
| r6300760 |
r696d574 |
|
| 1007 | 1007 | free( psz_val ); |
|---|
| 1008 | 1008 | } |
|---|
| | 1009 | #ifdef ENABLE_VLM |
|---|
| 1009 | 1010 | else if( !strcmp( s, "vlm_command" ) || !strcmp( s, "vlm_cmd" ) ) |
|---|
| 1010 | 1011 | { |
|---|
| … | … | |
| 1057 | 1058 | free( psz_error ); |
|---|
| 1058 | 1059 | } |
|---|
| | 1060 | #endif /* ENABLE_VLM */ |
|---|
| 1059 | 1061 | else if( !strcmp( s, "snapshot" ) ) |
|---|
| 1060 | 1062 | { |
|---|