Changeset e0c9e748ad50009db6cc375a739132ab77212704

Show
Ignore:
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
  • src/network/httpd.c

    rd1af4dc re0c9e74  
    2929 
    3030#include <vlc/vlc.h> 
     31#include <vlc_httpd.h> 
    3132 
    3233#ifdef ENABLE_HTTPD 
     
    3435#include <assert.h> 
    3536 
    36 #include <vlc_httpd.h> 
    3737#include <vlc_network.h> 
    3838#include <vlc_tls.h> 
     
    25792579 
    25802580/* 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 ) 
     2581httpd_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) 
    25832585{ 
    25842586    msg_Err( a, "HTTP daemon support is disabled" ); 
     
    25862588} 
    25872589 
    2588 httpd_host_t *httpd_HostNew( vlc_object_t *a, char *b, int c ) 
     2590httpd_host_t *httpd_HostNew( vlc_object_t *a, const char *b, 
     2591                             int c ) 
    25892592{ 
    25902593    msg_Err( a, "HTTP daemon support is disabled" ); 
     
    25962599} 
    25972600 
    2598 httpd_url_t *httpd_UrlNew( httpd_host_t *host, char *psz_url, 
    2599                            char *psz_user, char *psz_password, 
     2601httpd_url_t *httpd_UrlNew( httpd_host_t *host, const char *psz_url, 
     2602                           const char *psz_user, const char *psz_password, 
    26002603                           const vlc_acl_t *p_acl ) 
    26012604{ 
     
    26032606} 
    26042607 
    2605 httpd_url_t *httpd_UrlNewUnique( httpd_host_t *host, char *psz_url, 
    2606                                  char *psz_user, char *psz_password, 
     2608httpd_url_t *httpd_UrlNewUnique( httpd_host_t *host, const char *psz_url, 
     2609                                 const char *psz_user, const char *psz_password, 
    26072610                                 const vlc_acl_t *p_acl ) 
    26082611{ 
     
    26202623} 
    26212624 
    2622 char* httpd_ClientIP( httpd_client_t *cl, char *psz_ip ) 
     2625char* httpd_ClientIP( const httpd_client_t *cl, char *psz_ip ) 
    26232626{ 
    26242627    return NULL; 
    26252628} 
    26262629 
    2627 char* httpd_ServerIP( httpd_client_t *cl, char *psz_ip ) 
     2630char* httpd_ServerIP( const httpd_client_t *cl, char *psz_ip ) 
    26282631{ 
    26292632    return NULL; 
     
    26382641} 
    26392642 
    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 ) 
     2643httpd_file_sys_t *httpd_FileDelete( httpd_file_t *file ) 
     2644
     2645        return NULL; 
     2646
     2647 
     2648httpd_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 ) 
    26472653{ 
    26482654    return NULL; 
     
    26592665} 
    26602666 
    2661 void httpd_HandlerDelete( httpd_handler_t *handler ) 
    2662 
     2667httpd_handler_sys_t *httpd_HandlerDelete( httpd_handler_t *handler ) 
     2668
     2669        return NULL; 
    26632670} 
    26642671 
     
    26672674} 
    26682675 
    2669 httpd_redirect_t *httpd_RedirectNew( httpd_host_t *a
    2670                                      char *b, char *c ) 
     2676httpd_redirect_t *httpd_RedirectNew( httpd_host_t *host, const char *psz_url_dst
     2677                                     const char *psz_url_src ) 
    26712678{ 
    26722679    return NULL; 
     
    26872694} 
    26882695 
    2689 httpd_stream_t *httpd_StreamNew( httpd_host_t *a, char *b, char *c, 
    2690                                  char *d, char *e ) 
     2696httpd_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 ) 
    26912700{ 
    26922701    return NULL; 
     
    27012710} 
    27022711 
    2703 const char *httpd_MsgGet ( httpd_message_t *a, const char *b
     2712const char *httpd_MsgGet( const httpd_message_t *msg, const char *name
    27042713{ 
    27052714    return "";