Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
653329ea
Commit
653329ea
authored
Aug 30, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some const qualifiers
parent
d2c0ae55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
include/vlc_httpd.h
include/vlc_httpd.h
+1
-1
src/network/httpd.c
src/network/httpd.c
+9
-5
No files found.
include/vlc_httpd.h
View file @
653329ea
...
...
@@ -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_MsgAdd
,
(
httpd_message_t
*
,
const
char
*
psz_name
,
const
char
*
psz_value
,
...
)
);
/* 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
*
)
);
#endif
/* _VLC_HTTPD_H */
src/network/httpd.c
View file @
653329ea
...
...
@@ -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
;
uint8_t
*
psz_args
=
query
->
psz_args
;
...
...
@@ -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
;
uint8_t
*
psz_args
=
query
->
psz_args
;
...
...
@@ -628,7 +632,7 @@ struct httpd_redirect_t
static
int
httpd_RedirectCallBack
(
httpd_callback_sys_t
*
p_sys
,
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
;
char
*
p_body
;
...
...
@@ -708,7 +712,7 @@ struct httpd_stream_t
static
int
httpd_StreamCallBack
(
httpd_callback_sys_t
*
p_sys
,
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
;
...
...
@@ -1333,7 +1337,7 @@ void httpd_MsgClean( httpd_message_t *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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment