Commit 653329ea authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Add some const qualifiers

parent d2c0ae55
...@@ -141,7 +141,7 @@ VLC_EXPORT( int, httpd_StreamSend, ( httpd_stream_t *, uint8_t *p ...@@ -141,7 +141,7 @@ VLC_EXPORT( int, httpd_StreamSend, ( httpd_stream_t *, uint8_t *p
VLC_EXPORT( void, httpd_MsgInit, ( httpd_message_t * ) ); VLC_EXPORT( void, httpd_MsgInit, ( httpd_message_t * ) );
VLC_EXPORT( void, httpd_MsgAdd, ( httpd_message_t *, const char *psz_name, const char *psz_value, ... ) ); VLC_EXPORT( void, httpd_MsgAdd, ( httpd_message_t *, const char *psz_name, const char *psz_value, ... ) );
/* return "" if not found. The string is not allocated */ /* return "" if not found. The string is not allocated */
VLC_EXPORT( const char *, httpd_MsgGet, ( httpd_message_t *, const char *psz_name ) ); VLC_EXPORT( const char *, httpd_MsgGet, ( const httpd_message_t *, const char *psz_name ) );
VLC_EXPORT( void, httpd_MsgClean, ( httpd_message_t * ) ); VLC_EXPORT( void, httpd_MsgClean, ( httpd_message_t * ) );
#endif /* _VLC_HTTPD_H */ #endif /* _VLC_HTTPD_H */
...@@ -384,7 +384,9 @@ struct httpd_file_t ...@@ -384,7 +384,9 @@ struct httpd_file_t
}; };
static int httpd_FileCallBack( httpd_callback_sys_t *p_sys, httpd_client_t *cl, httpd_message_t *answer, httpd_message_t *query ) static int
httpd_FileCallBack( httpd_callback_sys_t *p_sys, httpd_client_t *cl,
httpd_message_t *answer, const httpd_message_t *query )
{ {
httpd_file_t *file = (httpd_file_t*)p_sys; httpd_file_t *file = (httpd_file_t*)p_sys;
uint8_t *psz_args = query->psz_args; uint8_t *psz_args = query->psz_args;
...@@ -504,7 +506,9 @@ struct httpd_handler_t ...@@ -504,7 +506,9 @@ struct httpd_handler_t
}; };
static int httpd_HandlerCallBack( httpd_callback_sys_t *p_sys, httpd_client_t *cl, httpd_message_t *answer, httpd_message_t *query ) static int
httpd_HandlerCallBack( httpd_callback_sys_t *p_sys, httpd_client_t *cl,
httpd_message_t *answer, const httpd_message_t *query )
{ {
httpd_handler_t *handler = (httpd_handler_t*)p_sys; httpd_handler_t *handler = (httpd_handler_t*)p_sys;
uint8_t *psz_args = query->psz_args; uint8_t *psz_args = query->psz_args;
...@@ -628,7 +632,7 @@ struct httpd_redirect_t ...@@ -628,7 +632,7 @@ struct httpd_redirect_t
static int httpd_RedirectCallBack( httpd_callback_sys_t *p_sys, static int httpd_RedirectCallBack( httpd_callback_sys_t *p_sys,
httpd_client_t *cl, httpd_message_t *answer, httpd_client_t *cl, httpd_message_t *answer,
httpd_message_t *query ) const httpd_message_t *query )
{ {
httpd_redirect_t *rdir = (httpd_redirect_t*)p_sys; httpd_redirect_t *rdir = (httpd_redirect_t*)p_sys;
char *p_body; char *p_body;
...@@ -708,7 +712,7 @@ struct httpd_stream_t ...@@ -708,7 +712,7 @@ struct httpd_stream_t
static int httpd_StreamCallBack( httpd_callback_sys_t *p_sys, static int httpd_StreamCallBack( httpd_callback_sys_t *p_sys,
httpd_client_t *cl, httpd_message_t *answer, httpd_client_t *cl, httpd_message_t *answer,
httpd_message_t *query ) const httpd_message_t *query )
{ {
httpd_stream_t *stream = (httpd_stream_t*)p_sys; httpd_stream_t *stream = (httpd_stream_t*)p_sys;
...@@ -1333,7 +1337,7 @@ void httpd_MsgClean( httpd_message_t *msg ) ...@@ -1333,7 +1337,7 @@ void httpd_MsgClean( httpd_message_t *msg )
httpd_MsgInit( msg ); httpd_MsgInit( msg );
} }
const char *httpd_MsgGet( httpd_message_t *msg, const char *name ) const char *httpd_MsgGet( const httpd_message_t *msg, const char *name )
{ {
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment