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
17793e99
Commit
17793e99
authored
Feb 22, 2018
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add nghttp2_session_set_user_data() public API function
parent
5eac3c90
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
doc/Makefile.am
doc/Makefile.am
+1
-0
lib/includes/nghttp2/nghttp2.h
lib/includes/nghttp2/nghttp2.h
+10
-0
lib/nghttp2_session.c
lib/nghttp2_session.c
+4
-0
No files found.
doc/Makefile.am
View file @
17793e99
...
...
@@ -143,6 +143,7 @@ APIDOCS= \
nghttp2_session_set_local_window_size.rst
\
nghttp2_session_set_next_stream_id.rst
\
nghttp2_session_set_stream_user_data.rst
\
nghttp2_session_set_user_data.rst
\
nghttp2_session_terminate_session.rst
\
nghttp2_session_terminate_session2.rst
\
nghttp2_session_upgrade.rst
\
...
...
lib/includes/nghttp2/nghttp2.h
View file @
17793e99
...
...
@@ -3081,6 +3081,16 @@ NGHTTP2_EXTERN int
nghttp2_session_set_stream_user_data
(
nghttp2_session
*
session
,
int32_t
stream_id
,
void
*
stream_user_data
);
/**
* @function
*
* Sets |user_data| to |session|, overwriting the existing user data
* specified in `nghttp2_session_client_new()`, or
* `nghttp2_session_server_new()`.
*/
NGHTTP2_EXTERN
void
nghttp2_session_set_user_data
(
nghttp2_session
*
session
,
void
*
user_data
);
/**
* @function
*
...
...
lib/nghttp2_session.c
View file @
17793e99
...
...
@@ -7521,3 +7521,7 @@ size_t
nghttp2_session_get_hd_deflate_dynamic_table_size
(
nghttp2_session
*
session
)
{
return
nghttp2_hd_deflate_get_dynamic_table_size
(
&
session
->
hd_deflater
);
}
void
nghttp2_session_set_user_data
(
nghttp2_session
*
session
,
void
*
user_data
)
{
session
->
user_data
=
user_data
;
}
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