Ticket #1461: nohttpd.patch
| File nohttpd.patch, 4.1 kB (added by aballier, 10 months ago) |
|---|
-
src/network/httpd.c
old new 28 28 #endif 29 29 30 30 #include <vlc/vlc.h> 31 #include <vlc_httpd.h> 31 32 32 33 #ifdef ENABLE_HTTPD 33 34 34 35 #include <assert.h> 35 36 36 #include <vlc_httpd.h>37 37 #include <vlc_network.h> 38 38 #include <vlc_tls.h> 39 39 #include <vlc_acl.h> … … 2578 2578 #else /* ENABLE_HTTPD */ 2579 2579 2580 2580 /* We just define an empty wrapper */ 2581 httpd_host_t *httpd_TLSHostNew( vlc_object_t *a, char *b, int c, 2582 tls_server_t *d ) 2581 httpd_host_t *httpd_TLSHostNew( vlc_object_t *a, const char *b, 2582 int c, 2583 const char *e, const char *f, 2584 const char *g, const char* h) 2583 2585 { 2584 2586 msg_Err( a, "HTTP daemon support is disabled" ); 2585 2587 return NULL; 2586 2588 } 2587 2589 2588 httpd_host_t *httpd_HostNew( vlc_object_t *a, char *b, int c ) 2590 httpd_host_t *httpd_HostNew( vlc_object_t *a, const char *b, 2591 int c ) 2589 2592 { 2590 2593 msg_Err( a, "HTTP daemon support is disabled" ); 2591 2594 return NULL; … … 2595 2598 { 2596 2599 } 2597 2600 2598 httpd_url_t *httpd_UrlNew( httpd_host_t *host, c har *psz_url,2599 c har *psz_user,char *psz_password,2601 httpd_url_t *httpd_UrlNew( httpd_host_t *host, const char *psz_url, 2602 const char *psz_user, const char *psz_password, 2600 2603 const vlc_acl_t *p_acl ) 2601 2604 { 2602 2605 return NULL; 2603 2606 } 2604 2607 2605 httpd_url_t *httpd_UrlNewUnique( httpd_host_t *host, c har *psz_url,2606 c har *psz_user,char *psz_password,2608 httpd_url_t *httpd_UrlNewUnique( httpd_host_t *host, const char *psz_url, 2609 const char *psz_user, const char *psz_password, 2607 2610 const vlc_acl_t *p_acl ) 2608 2611 { 2609 2612 return NULL; … … 2619 2622 { 2620 2623 } 2621 2624 2622 char* httpd_ClientIP( httpd_client_t *cl, char *psz_ip )2625 char* httpd_ClientIP( const httpd_client_t *cl, char *psz_ip ) 2623 2626 { 2624 2627 return NULL; 2625 2628 } 2626 2629 2627 char* httpd_ServerIP( httpd_client_t *cl, char *psz_ip )2630 char* httpd_ServerIP( const httpd_client_t *cl, char *psz_ip ) 2628 2631 { 2629 2632 return NULL; 2630 2633 } … … 2637 2640 { 2638 2641 } 2639 2642 2640 void httpd_FileDelete( httpd_file_t *a)2643 httpd_file_sys_t *httpd_FileDelete( httpd_file_t *file ) 2641 2644 { 2645 return NULL; 2642 2646 } 2643 2647 2644 httpd_file_t *httpd_FileNew( httpd_host_t *a, char *b, char *c, char *d, 2645 char *e, httpd_file_callback_t f, 2646 httpd_file_sys_t *g ) 2648 httpd_file_t *httpd_FileNew( httpd_host_t *host, 2649 const char *psz_url, const char *psz_mime, 2650 const char *psz_user, const char *psz_password, 2651 const vlc_acl_t *p_acl, httpd_file_callback_t pf_fill, 2652 httpd_file_sys_t *p_sys ) 2647 2653 { 2648 2654 return NULL; 2649 2655 } … … 2658 2664 return NULL; 2659 2665 } 2660 2666 2661 voidhttpd_HandlerDelete( httpd_handler_t *handler )2667 httpd_handler_sys_t *httpd_HandlerDelete( httpd_handler_t *handler ) 2662 2668 { 2669 return NULL; 2663 2670 } 2664 2671 2665 2672 void httpd_RedirectDelete( httpd_redirect_t *a ) 2666 2673 { 2667 2674 } 2668 2675 2669 httpd_redirect_t *httpd_RedirectNew( httpd_host_t * a,2670 c har *b, char *c )2676 httpd_redirect_t *httpd_RedirectNew( httpd_host_t *host, const char *psz_url_dst, 2677 const char *psz_url_src ) 2671 2678 { 2672 2679 return NULL; 2673 2680 } … … 2686 2693 return 0; 2687 2694 } 2688 2695 2689 httpd_stream_t *httpd_StreamNew( httpd_host_t *a, char *b, char *c, 2690 char *d, char *e ) 2696 httpd_stream_t *httpd_StreamNew( httpd_host_t *host, 2697 const char *psz_url, const char *psz_mime, 2698 const char *psz_user, const char *psz_password, 2699 const vlc_acl_t *p_acl ) 2691 2700 { 2692 2701 return NULL; 2693 2702 } … … 2700 2709 { 2701 2710 } 2702 2711 2703 const char *httpd_MsgGet ( httpd_message_t *a, const char *b)2712 const char *httpd_MsgGet( const httpd_message_t *msg, const char *name ) 2704 2713 { 2705 2714 return ""; 2706 2715 }
