Changeset e0c9e748ad50009db6cc375a739132ab77212704
- Timestamp:
- 25/02/08 16:45:21
(8 months ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1203954321 +0000
- git-parent:
[6693060b623c2eef9656c64e86ac7c8e72d0e46e]
- git-author:
- Rafaël Carré <funman@videolan.org> 1203954321 +0000
- Message:
fix #1461
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd1af4dc |
re0c9e74 |
|
| 29 | 29 | |
|---|
| 30 | 30 | #include <vlc/vlc.h> |
|---|
| | 31 | #include <vlc_httpd.h> |
|---|
| 31 | 32 | |
|---|
| 32 | 33 | #ifdef ENABLE_HTTPD |
|---|
| … | … | |
| 34 | 35 | #include <assert.h> |
|---|
| 35 | 36 | |
|---|
| 36 | | #include <vlc_httpd.h> |
|---|
| 37 | 37 | #include <vlc_network.h> |
|---|
| 38 | 38 | #include <vlc_tls.h> |
|---|
| … | … | |
| 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" ); |
|---|
| … | … | |
| 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" ); |
|---|
| … | … | |
| 2596 | 2599 | } |
|---|
| 2597 | 2600 | |
|---|
| 2598 | | httpd_url_t *httpd_UrlNew( httpd_host_t *host, char *psz_url, |
|---|
| 2599 | | char *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 | { |
|---|
| … | … | |
| 2603 | 2606 | } |
|---|
| 2604 | 2607 | |
|---|
| 2605 | | httpd_url_t *httpd_UrlNewUnique( httpd_host_t *host, char *psz_url, |
|---|
| 2606 | | char *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 | { |
|---|
| … | … | |
| 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; |
|---|
| … | … | |
| 2638 | 2641 | } |
|---|
| 2639 | 2642 | |
|---|
| 2640 | | void httpd_FileDelete( httpd_file_t *a ) |
|---|
| 2641 | | { |
|---|
| 2642 | | } |
|---|
| 2643 | | |
|---|
| 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 ) |
|---|
| | 2643 | httpd_file_sys_t *httpd_FileDelete( httpd_file_t *file ) |
|---|
| | 2644 | { |
|---|
| | 2645 | return NULL; |
|---|
| | 2646 | } |
|---|
| | 2647 | |
|---|
| | 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; |
|---|
| … | … | |
| 2659 | 2665 | } |
|---|
| 2660 | 2666 | |
|---|
| 2661 | | void httpd_HandlerDelete( httpd_handler_t *handler ) |
|---|
| 2662 | | { |
|---|
| | 2667 | httpd_handler_sys_t *httpd_HandlerDelete( httpd_handler_t *handler ) |
|---|
| | 2668 | { |
|---|
| | 2669 | return NULL; |
|---|
| 2663 | 2670 | } |
|---|
| 2664 | 2671 | |
|---|
| … | … | |
| 2667 | 2674 | } |
|---|
| 2668 | 2675 | |
|---|
| 2669 | | httpd_redirect_t *httpd_RedirectNew( httpd_host_t *a, |
|---|
| 2670 | | char *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; |
|---|
| … | … | |
| 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; |
|---|
| … | … | |
| 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 ""; |
|---|