[vlc-devel] commit: Privatize httpd_MsgInit and httpd_MsgClean ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Oct 22 19:04:43 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Oct 22 20:04:19 2008 +0300| [081b18a15b97e8a27fbbeceb97eabb3dbdc62390] | committer: Rémi Denis-Courmont 

Privatize httpd_MsgInit and httpd_MsgClean

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=081b18a15b97e8a27fbbeceb97eabb3dbdc62390
---

 include/vlc_httpd.h |    2 --
 src/libvlccore.sym  |    2 --
 src/network/httpd.c |   12 ++----------
 3 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/include/vlc_httpd.h b/include/vlc_httpd.h
index 5febb37..c64803d 100644
--- a/include/vlc_httpd.h
+++ b/include/vlc_httpd.h
@@ -140,10 +140,8 @@ VLC_EXPORT( int,              httpd_StreamSend,   ( httpd_stream_t *, uint8_t *p
 
 
 /* Msg functions facilities */
-VLC_EXPORT( void,         httpd_MsgInit, ( httpd_message_t * )  );
 VLC_EXPORT( void,         httpd_MsgAdd, ( httpd_message_t *, const char *psz_name, const char *psz_value, ... ) LIBVLC_FORMAT( 3, 4 ) );
 /* return "" if not found. The string is not allocated */
 VLC_EXPORT( const char *, httpd_MsgGet, ( const httpd_message_t *, const char *psz_name ) );
-VLC_EXPORT( void,         httpd_MsgClean, ( httpd_message_t * ) );
 
 #endif /* _VLC_HTTPD_H */
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 508c4a8..8c61949 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -130,9 +130,7 @@ httpd_HandlerNew
 httpd_HostDelete
 httpd_HostNew
 httpd_MsgAdd
-httpd_MsgClean
 httpd_MsgGet
-httpd_MsgInit
 httpd_RedirectDelete
 httpd_RedirectNew
 httpd_ServerIP
diff --git a/src/network/httpd.c b/src/network/httpd.c
index 2587d2d..e95661f 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -1308,7 +1308,7 @@ void httpd_UrlDelete( httpd_url_t *url )
     vlc_mutex_unlock( &host->lock );
 }
 
-void httpd_MsgInit( httpd_message_t *msg )
+static void httpd_MsgInit( httpd_message_t *msg )
 {
     msg->cl         = NULL;
     msg->i_type     = HTTPD_MSG_NONE;
@@ -1332,7 +1332,7 @@ void httpd_MsgInit( httpd_message_t *msg )
     msg->p_body        = NULL;
 }
 
-void httpd_MsgClean( httpd_message_t *msg )
+static void httpd_MsgClean( httpd_message_t *msg )
 {
     int i;
 
@@ -2700,10 +2700,6 @@ httpd_stream_t *httpd_StreamNew( httpd_host_t *host,
     return NULL;
 }
 
-void httpd_MsgInit ( httpd_message_t *a )
-{
-}
-
 void httpd_MsgAdd  ( httpd_message_t *a, const char *b, const char *c, ... )
 {
 }
@@ -2713,8 +2709,4 @@ const char *httpd_MsgGet( const httpd_message_t *msg, const char *name )
     return "";
 }
 
-void httpd_MsgClean( httpd_message_t *a )
-{
-}
-
 #endif /* ENABLE_HTTPD */




More information about the vlc-devel mailing list