Changeset 1ff5e7267e7a4711f60cbe7300060d13d2955bd7
- Timestamp:
- 01/10/04 20:04:09 (4 years ago)
- git-parent:
- Files:
-
- configure.ac (modified) (4 diffs)
- modules/control/http.c (modified) (6 diffs)
- modules/control/telnet.c (modified) (3 diffs)
- src/misc/httpd.c (modified) (3 diffs)
- src/misc/vlm.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
configure.ac
rb2656b1 r1ff5e72 1186 1186 # VLC_ADD_PLUGINS([stream_out_transrate]) 1187 1187 1188 dnl Ogg and vorbis are handled in their respective section 1189 fi 1190 1188 AC_DEFINE(ENABLE_SOUT, 1, Define if you want the stream output support) 1189 fi 1190 1191 dnl 1192 dnl HTTP daemon 1193 dnl 1194 AC_ARG_ENABLE(httpd, 1195 [ --enable-httpd HTTP daemon (default enabled)]) 1196 if test "${enable_httpd}" != "no" 1197 then 1198 AC_DEFINE(ENABLE_HTTPD, 1, Define if you want the HTTP dameon support) 1199 fi 1200 1201 dnl 1202 dnl VideoLAN manager 1203 dnl 1204 AC_ARG_ENABLE(vlm, 1205 [ --enable-vlm VideoLAN manager (default enabled)]) 1206 if test "${enable_vlm}" != "no" 1207 then 1208 AC_DEFINE(ENABLE_VLM, 1, Define if you want the VideoLAN manager support) 1209 fi 1191 1210 1192 1211 dnl … … 1631 1650 dnl 1632 1651 AC_ARG_ENABLE(screen, 1633 [ --enable-screen Screen capture support (default enabled)])1652 [ --enable-screen Screen capture support (default enabled)]) 1634 1653 if test "${enable_screen}" != "no"; then 1635 1654 if test "${SYS}" = "darwin"; then … … 2001 2020 dnl 2002 2021 AC_ARG_ENABLE(toolame, 2003 [ --enable-toolame toolame codec (default disabled)])2022 [ --enable-toolame toolame codec (default disabled)]) 2004 2023 if test "${enable_toolame}" = "yes" 2005 2024 then … … 2662 2681 dnl 2663 2682 AC_ARG_ENABLE(opengl, 2664 [ --enable-opengl OpenGL support (default enabled)])2683 [ --enable-opengl OpenGL support (default enabled)]) 2665 2684 if test "${enable_opengl}" != "no" && test "${SYS}" != "beos"; then 2666 2685 if test "${SYS}" != "darwin"; then modules/control/http.c
rcc0c26f r1ff5e72 1125 1125 1126 1126 /* fprintf( stderr," mvar_VlmSetNew: name=`%s'\n", name ); */ 1127 if( vlm == NULL ) 1128 return s; 1127 if( vlm == NULL ) return s; 1128 1129 1129 if( vlm_ExecuteCommand( vlm, "show", &msg ) ) 1130 1130 { … … 1975 1975 p_intf->p_sys->p_vlm = vlm_New( p_intf ); 1976 1976 1977 if( p_intf->p_sys->p_vlm == NULL ) break; 1978 1977 1979 uri_extract_value( p_request, "name", name, 512 ); 1978 1980 if( StrToMacroType( control ) == MVLC_VLM_NEW ) … … 2032 2034 p_intf->p_sys->p_vlm = vlm_New( p_intf ); 2033 2035 2036 if( p_intf->p_sys->p_vlm == NULL ) break; 2037 2034 2038 uri_extract_value( p_request, "name", name, 512 ); 2035 2039 sprintf( psz, "del %s", name ); … … 2051 2055 if( p_intf->p_sys->p_vlm == NULL ) 2052 2056 p_intf->p_sys->p_vlm = vlm_New( p_intf ); 2057 2058 if( p_intf->p_sys->p_vlm == NULL ) break; 2053 2059 2054 2060 uri_extract_value( p_request, "name", name, 512 ); … … 2080 2086 if( p_intf->p_sys->p_vlm == NULL ) 2081 2087 p_intf->p_sys->p_vlm = vlm_New( p_intf ); 2088 2089 if( p_intf->p_sys->p_vlm == NULL ) break; 2082 2090 2083 2091 uri_extract_value( p_request, "file", file, 512 ); … … 2371 2379 { 2372 2380 if( p_intf->p_sys->p_vlm == NULL ) 2373 {2374 2381 p_intf->p_sys->p_vlm = vlm_New( p_intf ); 2375 }2376 2382 index = mvar_VlmSetNew( m.param1, p_intf->p_sys->p_vlm ); 2377 2383 } modules/control/telnet.c
rb3e49f8 r1ff5e72 117 117 int i_clients; 118 118 int fd; 119 vlm_t *mediatheque;119 vlm_t *mediatheque; 120 120 }; 121 121 … … 126 126 { 127 127 intf_thread_t *p_intf = (intf_thread_t*) p_this; 128 vlm_t *mediatheque; 128 129 int i_telnetport; 129 130 131 if( !(mediatheque = vlm_New( p_intf )) ) 132 { 133 msg_Err( p_intf, "cannot start VLM" ); 134 return VLC_EGENERIC; 135 } 136 137 msg_Info( p_intf, _("Using the VLM interface plugin...") ); 138 130 139 i_telnetport = config_GetInt( p_intf, "telnet-port" ); 131 132 #ifdef WIN32133 vlc_bool_t b_quiet;134 b_quiet = config_GetInt( p_intf, "dummy-quiet" );135 if( !b_quiet )136 CONSOLE_INTRO_MSG;137 #endif138 139 msg_Info( p_intf, _("Using the VLM interface plugin...") );140 141 p_intf->pf_run = Run;142 140 143 141 p_intf->p_sys = malloc( sizeof( intf_sys_t ) ); … … 152 150 p_intf->p_sys->i_clients = 0; 153 151 p_intf->p_sys->clients = NULL; 154 p_intf->p_sys->mediatheque = vlm_New( p_intf ); 152 p_intf->p_sys->mediatheque = mediatheque; 153 p_intf->pf_run = Run; 155 154 156 155 return VLC_SUCCESS; src/misc/httpd.c
r51002a6 r1ff5e72 26 26 #include <vlc/vlc.h> 27 27 28 #ifdef ENABLE_HTTPD 29 28 30 #include "vlc_httpd.h" 29 31 #include "network.h" … … 377 379 { ".jpeg", "image/jpeg" }, 378 380 { ".png", "image/png" }, 381 { ".mpjpeg","multipart/x-mixed-replace; boundary=This Random String" }, 379 382 380 383 /* media mime */ … … 2472 2475 return ntohs( i_port ); 2473 2476 } 2477 2478 #else /* ENABLE_HTTPD */ 2479 2480 /* We just define an empty wrapper */ 2481 httpd_host_t *httpd_HostNew( vlc_object_t *a, char *b, int c ) 2482 { 2483 msg_Err( a, "HTTP daemon support is disabled" ); 2484 return 0; 2485 } 2486 void httpd_HostDelete( httpd_host_t *a ){} 2487 httpd_url_t *httpd_UrlNew( httpd_host_t *a, char *b ){ return 0; } 2488 httpd_url_t *httpd_UrlNewUnique( httpd_host_t *a, char *b, char *c, 2489 char *d ){ return 0; } 2490 int httpd_UrlCatch( httpd_url_t *a, int b, httpd_callback_t c, 2491 httpd_callback_sys_t *d ){ return 0; } 2492 void httpd_UrlDelete( httpd_url_t *a ){} 2493 2494 char *httpd_ClientIP( httpd_client_t *a ){ return 0; } 2495 void httpd_ClientModeStream( httpd_client_t *a ){} 2496 void httpd_ClientModeBidir( httpd_client_t *a ){} 2497 2498 void httpd_FileDelete( httpd_file_t *a ){} 2499 httpd_file_t *httpd_FileNew( httpd_host_t *a, char *b, char *c, char *d, 2500 char *e, httpd_file_callback_t f, 2501 httpd_file_sys_t *g ){ return 0; } 2502 2503 void httpd_RedirectDelete( httpd_redirect_t *a ){} 2504 httpd_redirect_t *httpd_RedirectNew( httpd_host_t *a, 2505 char *b, char *c ){ return 0; } 2506 2507 void httpd_StreamDelete( httpd_stream_t *a ){} 2508 int httpd_StreamHeader( httpd_stream_t *a, uint8_t *b, int c ){ return 0; } 2509 int httpd_StreamSend ( httpd_stream_t *a, uint8_t *b, int c ){ return 0; } 2510 httpd_stream_t *httpd_StreamNew( httpd_host_t *a, char *b, char *c, 2511 char *d, char *e ){ return 0; } 2512 2513 void httpd_MsgInit ( httpd_message_t *a ){} 2514 void httpd_MsgAdd ( httpd_message_t *a, char *b, char *c, ... ){} 2515 char *httpd_MsgGet ( httpd_message_t *a, char *b ){ return 0; } 2516 void httpd_MsgClean( httpd_message_t *a ){} 2517 2518 #endif /* ENABLE_HTTPD */ src/misc/vlm.c
r51002a6 r1ff5e72 30 30 31 31 #include <vlc/vlc.h> 32 33 #ifdef ENABLE_VLM 34 32 35 #include <vlc/intf.h> 33 36 #include <vlc/input.h> … … 2134 2137 return VLC_SUCCESS; 2135 2138 } 2139 2140 #else /* ENABLE_VLM */ 2141 2142 /* We just define an empty wrapper */ 2143 vlm_t *__vlm_New( vlc_object_t *a ) 2144 { 2145 msg_Err( a, "VideoLAN manager support is disabled" ); 2146 return 0; 2147 } 2148 void vlm_Delete( vlm_t *a ){} 2149 int vlm_ExecuteCommand( vlm_t *a, char *b, vlm_message_t **c ){ return -1; } 2150 void vlm_MessageDelete( vlm_message_t *a ){} 2151 2152 #endif /* ENABLE_VLM */
