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
e3fd8199
Commit
e3fd8199
authored
Jul 05, 2015
by
Gabi Davar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove redundant function decorators.
parent
d4e1b63c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
lib/nghttp2_priority_spec.c
lib/nghttp2_priority_spec.c
+3
-3
lib/nghttp2_session.c
lib/nghttp2_session.c
+8
-8
No files found.
lib/nghttp2_priority_spec.c
View file @
e3fd8199
...
...
@@ -24,7 +24,7 @@
*/
#include "nghttp2_priority_spec.h"
NGHTTP2_EXTERN
void
nghttp2_priority_spec_init
(
nghttp2_priority_spec
*
pri_spec
,
void
nghttp2_priority_spec_init
(
nghttp2_priority_spec
*
pri_spec
,
int32_t
stream_id
,
int32_t
weight
,
int
exclusive
)
{
pri_spec
->
stream_id
=
stream_id
;
...
...
@@ -32,13 +32,13 @@ NGHTTP2_EXTERN void nghttp2_priority_spec_init(nghttp2_priority_spec *pri_spec,
pri_spec
->
exclusive
=
exclusive
!=
0
;
}
NGHTTP2_EXTERN
void
nghttp2_priority_spec_default_init
(
nghttp2_priority_spec
*
pri_spec
)
{
void
nghttp2_priority_spec_default_init
(
nghttp2_priority_spec
*
pri_spec
)
{
pri_spec
->
stream_id
=
0
;
pri_spec
->
weight
=
NGHTTP2_DEFAULT_WEIGHT
;
pri_spec
->
exclusive
=
0
;
}
NGHTTP2_EXTERN
int
nghttp2_priority_spec_check_default
(
const
nghttp2_priority_spec
*
pri_spec
)
{
int
nghttp2_priority_spec_check_default
(
const
nghttp2_priority_spec
*
pri_spec
)
{
return
pri_spec
->
stream_id
==
0
&&
pri_spec
->
weight
==
NGHTTP2_DEFAULT_WEIGHT
&&
pri_spec
->
exclusive
==
0
;
}
lib/nghttp2_session.c
View file @
e3fd8199
...
...
@@ -75,7 +75,7 @@ static int is_non_fatal(int lib_error_code) {
return
lib_error_code
<
0
&&
lib_error_code
>
NGHTTP2_ERR_FATAL
;
}
NGHTTP2_EXTERN
int
nghttp2_is_fatal
(
int
lib_error_code
)
{
int
nghttp2_is_fatal
(
int
lib_error_code
)
{
return
lib_error_code
<
NGHTTP2_ERR_FATAL
;
}
...
...
@@ -172,13 +172,13 @@ static int session_terminate_session(nghttp2_session *session,
return
0
;
}
NGHTTP2_EXTERN
int
nghttp2_session_terminate_session
(
nghttp2_session
*
session
,
int
nghttp2_session_terminate_session
(
nghttp2_session
*
session
,
uint32_t
error_code
)
{
return
session_terminate_session
(
session
,
session
->
last_proc_stream_id
,
error_code
,
NULL
);
}
NGHTTP2_EXTERN
int
nghttp2_session_terminate_session2
(
nghttp2_session
*
session
,
int
nghttp2_session_terminate_session2
(
nghttp2_session
*
session
,
int32_t
last_stream_id
,
uint32_t
error_code
)
{
return
session_terminate_session
(
session
,
last_stream_id
,
error_code
,
NULL
);
...
...
@@ -6552,7 +6552,7 @@ int nghttp2_session_consume(nghttp2_session *session, int32_t stream_id,
return
0
;
}
NGHTTP2_EXTERN
int
nghttp2_session_consume_connection
(
nghttp2_session
*
session
,
size_t
size
)
{
int
nghttp2_session_consume_connection
(
nghttp2_session
*
session
,
size_t
size
)
{
int
rv
;
if
(
!
(
session
->
opt_flags
&
NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE
))
{
...
...
@@ -6568,7 +6568,7 @@ NGHTTP2_EXTERN int nghttp2_session_consume_connection(nghttp2_session *session,
return
0
;
}
NGHTTP2_EXTERN
int
nghttp2_session_consume_stream
(
nghttp2_session
*
session
,
int32_t
stream_id
,
int
nghttp2_session_consume_stream
(
nghttp2_session
*
session
,
int32_t
stream_id
,
size_t
size
)
{
int
rv
;
nghttp2_stream
*
stream
;
...
...
@@ -6596,7 +6596,7 @@ NGHTTP2_EXTERN int nghttp2_session_consume_stream(nghttp2_session *session, int3
return
0
;
}
NGHTTP2_EXTERN
int
nghttp2_session_set_next_stream_id
(
nghttp2_session
*
session
,
int
nghttp2_session_set_next_stream_id
(
nghttp2_session
*
session
,
int32_t
next_stream_id
)
{
if
(
next_stream_id
<=
0
||
session
->
next_stream_id
>
(
uint32_t
)
next_stream_id
)
{
...
...
@@ -6615,10 +6615,10 @@ NGHTTP2_EXTERN int nghttp2_session_set_next_stream_id(nghttp2_session *session,
return
0
;
}
NGHTTP2_EXTERN
uint32_t
nghttp2_session_get_next_stream_id
(
nghttp2_session
*
session
)
{
uint32_t
nghttp2_session_get_next_stream_id
(
nghttp2_session
*
session
)
{
return
session
->
next_stream_id
;
}
NGHTTP2_EXTERN
int32_t
nghttp2_session_get_last_proc_stream_id
(
nghttp2_session
*
session
)
{
int32_t
nghttp2_session_get_last_proc_stream_id
(
nghttp2_session
*
session
)
{
return
session
->
last_proc_stream_id
;
}
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