Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Libraries
nghttp2
Commits
c4d36aef
Commit
c4d36aef
authored
Aug 16, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make parameters const pointer
parent
f50596e3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
12 deletions
+13
-12
lib/includes/nghttp2/nghttp2.h
lib/includes/nghttp2/nghttp2.h
+3
-3
lib/nghttp2_buf.c
lib/nghttp2_buf.c
+3
-3
lib/nghttp2_buf.h
lib/nghttp2_buf.h
+3
-3
lib/nghttp2_hd.c
lib/nghttp2_hd.c
+4
-3
No files found.
lib/includes/nghttp2/nghttp2.h
View file @
c4d36aef
...
...
@@ -4628,9 +4628,9 @@ nghttp2_hd_deflate_hd(nghttp2_hd_deflater *deflater, uint8_t *buf,
* The provided |buflen| size is too small to hold the output.
*/
NGHTTP2_EXTERN
ssize_t
nghttp2_hd_deflate_hd_vec
(
nghttp2_hd_deflater
*
deflater
,
uint8_t
**
bufsin
,
size_t
inlen
,
size_t
buflen
,
size_t
*
buflens
,
const
nghttp2_nv
*
nva
,
size_t
nvlen
);
nghttp2_hd_deflate_hd_vec
(
nghttp2_hd_deflater
*
deflater
,
uint8_t
*
const
*
bufsin
,
size_t
inlen
,
size_t
buflen
,
size_t
*
const
buflens
,
const
nghttp2_nv
*
nva
,
size_t
nvlen
);
/**
* @function
...
...
lib/nghttp2_buf.c
View file @
c4d36aef
...
...
@@ -223,8 +223,8 @@ int nghttp2_bufs_wrap_init(nghttp2_bufs *bufs, uint8_t *begin, size_t len,
return
0
;
}
int
nghttp2_bufs_wrap_init2
(
nghttp2_bufs
*
bufs
,
uint8_t
*
*
bufs_in
,
size_t
in_le
n
,
size_t
buf_len
,
nghttp2_mem
*
mem
)
{
int
nghttp2_bufs_wrap_init2
(
nghttp2_bufs
*
bufs
,
uint8_t
*
const
*
bufs_i
n
,
size_t
in_len
,
size_t
buf_len
,
nghttp2_mem
*
mem
)
{
size_t
i
=
0
;
nghttp2_buf_chain
*
cur_chain
;
nghttp2_buf_chain
*
pre_chain
=
NULL
;
...
...
@@ -305,7 +305,7 @@ size_t nghttp2_bufs_len(nghttp2_bufs *bufs) {
return
len
;
}
size_t
nghttp2_bufs_len_vec
(
nghttp2_bufs
*
bufs
,
size_t
*
buflens
)
{
size_t
nghttp2_bufs_len_vec
(
nghttp2_bufs
*
bufs
,
size_t
*
const
buflens
)
{
nghttp2_buf_chain
*
ci
;
size_t
len
,
total_len
=
0
;
int
i
=
0
;
...
...
lib/nghttp2_buf.h
View file @
c4d36aef
...
...
@@ -223,8 +223,8 @@ int nghttp2_bufs_wrap_init(nghttp2_bufs *bufs, uint8_t *begin, size_t len,
* NGHTTP2_ERR_NOMEM
* Out of memory.
*/
int
nghttp2_bufs_wrap_init2
(
nghttp2_bufs
*
bufs
,
uint8_t
*
*
bufs_in
,
size_t
in_le
n
,
size_t
buf_len
,
nghttp2_mem
*
mem
);
int
nghttp2_bufs_wrap_init2
(
nghttp2_bufs
*
bufs
,
uint8_t
*
const
*
bufs_i
n
,
size_t
in_len
,
size_t
buf_len
,
nghttp2_mem
*
mem
);
/*
* Frees any related resource to the |bufs|. This function does not
...
...
@@ -404,6 +404,6 @@ size_t nghttp2_bufs_len(nghttp2_bufs *bufs);
/*
* Returns the total buffer length of |bufs|, and each buffer length in |buflens|.
*/
size_t
nghttp2_bufs_len_vec
(
nghttp2_bufs
*
bufs
,
size_t
*
buflens
);
size_t
nghttp2_bufs_len_vec
(
nghttp2_bufs
*
bufs
,
size_t
*
const
buflens
);
#endif
/* NGHTTP2_BUF_H */
lib/nghttp2_hd.c
View file @
c4d36aef
...
...
@@ -1503,9 +1503,10 @@ ssize_t nghttp2_hd_deflate_hd(nghttp2_hd_deflater *deflater, uint8_t *buf,
return
(
ssize_t
)
buflen
;
}
ssize_t
nghttp2_hd_deflate_hd_vec
(
nghttp2_hd_deflater
*
deflater
,
uint8_t
**
bufsin
,
size_t
inlen
,
size_t
buflen
,
size_t
*
buflens
,
const
nghttp2_nv
*
nv
,
size_t
nvlen
)
{
ssize_t
nghttp2_hd_deflate_hd_vec
(
nghttp2_hd_deflater
*
deflater
,
uint8_t
*
const
*
bufsin
,
size_t
inlen
,
size_t
buflen
,
size_t
*
const
buflens
,
const
nghttp2_nv
*
nv
,
size_t
nvlen
)
{
nghttp2_bufs
bufs
;
int
rv
;
nghttp2_mem
*
mem
;
...
...
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