]> git.sesse.net Git - vlc/commitdiff
Rename and remove unused ACL parameter of httpd_UrlNewUnique()
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 1 Apr 2012 19:13:54 +0000 (22:13 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 1 Apr 2012 19:13:54 +0000 (22:13 +0300)
include/vlc_httpd.h
modules/misc/rtsp.c
modules/stream_out/rtsp.c
src/libvlccore.sym
src/missing.c
src/network/httpd.c

index f689bdba6cd83c1facb4d4a69c2b433efd4e0ed5..e8514812ea01eca8386e64428f14619f12d39b7e 100644 (file)
@@ -101,7 +101,7 @@ VLC_API httpd_host_t *vlc_rtsp_HostNew( vlc_object_t * ) VLC_USED;
 VLC_API void httpd_HostDelete( httpd_host_t * );
 
 /* register a new url */
-VLC_API httpd_url_t * httpd_UrlNewUnique( httpd_host_t *, const char *psz_url, const char *psz_user, const char *psz_password, const vlc_acl_t *p_acl ) VLC_USED;
+VLC_API httpd_url_t * httpd_UrlNew( httpd_host_t *, const char *psz_url, const char *psz_user, const char *psz_password ) VLC_USED;
 /* register callback on a url */
 VLC_API int httpd_UrlCatch( httpd_url_t *, int i_msg, httpd_callback_t, httpd_callback_sys_t * );
 /* delete a url */
index d7eaf135225a976949f9b6869258c25036d246de..8829c0a22799cbc714cf4bd30070252bbeba3b1c 100644 (file)
@@ -372,8 +372,7 @@ static vod_media_t *MediaNew( vod_t *p_vod, const char *psz_name,
                   p_sys->psz_path, psz_name ) <0 )
         return NULL;
     p_media->p_rtsp_url =
-        httpd_UrlNewUnique( p_sys->p_rtsp_host, p_media->psz_rtsp_path, NULL,
-                            NULL, NULL );
+        httpd_UrlNew( p_sys->p_rtsp_host, p_media->psz_rtsp_path, NULL, NULL );
 
     if( !p_media->p_rtsp_url )
     {
@@ -678,8 +677,7 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
     }
 
     p_es->p_rtsp_url =
-        httpd_UrlNewUnique( p_vod->p_sys->p_rtsp_host, psz_urlc, NULL, NULL,
-                            NULL );
+        httpd_UrlNew( p_vod->p_sys->p_rtsp_host, psz_urlc, NULL, NULL );
 
     if( !p_es->p_rtsp_url )
     {
index 2f9569ae5c65a047b862e44bde525685862fe03e..a49bd8af62cd1ba872c1650998a4c1f531b7c337 100644 (file)
@@ -125,8 +125,7 @@ rtsp_stream_t *RtspSetup( vlc_object_t *owner, vod_media_t *media,
     char *user = var_InheritString(owner, "sout-rtsp-user");
     char *pwd = var_InheritString(owner, "sout-rtsp-pwd");
 
-    rtsp->url = httpd_UrlNewUnique( rtsp->host, rtsp->psz_path,
-                                    user, pwd, NULL );
+    rtsp->url = httpd_UrlNew( rtsp->host, rtsp->psz_path, user, pwd );
     free(user);
     free(pwd);
     if( rtsp->url == NULL )
@@ -258,7 +257,7 @@ rtsp_stream_id_t *RtspAddId( rtsp_stream_t *rtsp, sout_stream_id_t *sid,
     char *user = var_InheritString(rtsp->owner, "sout-rtsp-user");
     char *pwd = var_InheritString(rtsp->owner, "sout-rtsp-pwd");
 
-    url = id->url = httpd_UrlNewUnique( rtsp->host, urlbuf, user, pwd, NULL );
+    url = id->url = httpd_UrlNew( rtsp->host, urlbuf, user, pwd );
     free( user );
     free( pwd );
     free( urlbuf );
index 6abcb67f8532693cf828e5ade4240f019d2e2631..770740f9217f66092665fda3e13f5b062eeffb21 100644 (file)
@@ -176,7 +176,7 @@ httpd_StreamNew
 httpd_StreamSend
 httpd_UrlCatch
 httpd_UrlDelete
-httpd_UrlNewUnique
+httpd_UrlNew
 image_Ext2Fourcc
 image_HandlerCreate
 image_HandlerDelete
index c4d6b31b8e7e237da3075bc07e6850b3d8a9dd5e..58082d978f11c1941a01fff0d248e4356d3c3b00 100644 (file)
@@ -183,11 +183,10 @@ void httpd_UrlDelete (httpd_url_t *url)
     assert (0);
 }
 
-httpd_url_t *httpd_UrlNewUnique (httpd_host_t *host, const char *url,
-                                 const char *login, const char *password,
-                                 const vlc_acl_t *acl)
+httpd_url_t *httpd_UrlNew (httpd_host_t *host, const char *url,
+                           const char *login, const char *password)
 {
-    (void) host; (void) url; (void) login; (void) password; (void) acl;
+    (void) host; (void) url; (void) login; (void) password;
     assert (0);
 }
 #endif /* !ENABLE_HTTPD */
index cd22b91accb4f8960372d55d1e61e08a5ae7ce5b..c458fcab752d4ef155835848aa9b032bd7194de0 100644 (file)
@@ -68,6 +68,9 @@
 #endif
 
 static void httpd_ClientClean( httpd_client_t *cl );
+static httpd_url_t *httpd_UrlNewPrivate( httpd_host_t *, const char *,
+                                         const char *, const char *,
+                                         const vlc_acl_t * );
 
 /* each host run in his own thread */
 struct httpd_host_t
@@ -447,9 +450,9 @@ httpd_file_t *httpd_FileNew( httpd_host_t *host,
 {
     httpd_file_t *file = xmalloc( sizeof( httpd_file_t ) );
 
-    if( ( file->url = httpd_UrlNewUnique( host, psz_url, psz_user,
-                                          psz_password, p_acl )
-        ) == NULL )
+    file->url = httpd_UrlNewPrivate( host, psz_url, psz_user, psz_password,
+                                     p_acl );
+    if( file->url == NULL )
     {
         free( file );
         return NULL;
@@ -595,9 +598,9 @@ httpd_handler_t *httpd_HandlerNew( httpd_host_t *host, const char *psz_url,
 {
     httpd_handler_t *handler = xmalloc( sizeof( httpd_handler_t ) );
 
-    if( ( handler->url = httpd_UrlNewUnique( host, psz_url, psz_user,
-                                             psz_password, p_acl )
-        ) == NULL )
+    handler->url = httpd_UrlNewPrivate( host, psz_url, psz_user, psz_password,
+                                        p_acl );
+    if( handler->url == NULL )
     {
         free( handler );
         return NULL;
@@ -666,7 +669,8 @@ httpd_redirect_t *httpd_RedirectNew( httpd_host_t *host, const char *psz_url_dst
 {
     httpd_redirect_t *rdir = xmalloc( sizeof( httpd_redirect_t ) );
 
-    if( !( rdir->url = httpd_UrlNewUnique( host, psz_url_src, NULL, NULL, NULL ) ) )
+    rdir->url = httpd_UrlNew( host, psz_url_src, NULL, NULL );
+    if( rdir->url == NULL )
     {
         free( rdir );
         return NULL;
@@ -849,9 +853,9 @@ httpd_stream_t *httpd_StreamNew( httpd_host_t *host,
 {
     httpd_stream_t *stream = xmalloc( sizeof( httpd_stream_t ) );
 
-    if( ( stream->url = httpd_UrlNewUnique( host, psz_url, psz_user,
-                                            psz_password, p_acl )
-        ) == NULL )
+    stream->url = httpd_UrlNewPrivate( host, psz_url, psz_user, psz_password,
+                                       p_acl );
+    if( stream->url == NULL )
     {
         free( stream );
         return NULL;
@@ -1237,12 +1241,10 @@ static httpd_url_t *httpd_UrlNewPrivate( httpd_host_t *host, const char *psz_url
     return url;
 }
 
-httpd_url_t *httpd_UrlNewUnique( httpd_host_t *host, const char *psz_url,
-                                 const char *psz_user, const char *psz_password,
-                                 const vlc_acl_t *p_acl )
+httpd_url_t *httpd_UrlNew( httpd_host_t *host, const char *psz_url,
+                           const char *psz_user, const char *psz_password )
 {
-    return httpd_UrlNewPrivate( host, psz_url, psz_user,
-                                psz_password, p_acl );
+    return httpd_UrlNewPrivate( host, psz_url, psz_user, psz_password, NULL );
 }
 
 /* register callback on a url */