diff options
Diffstat (limited to 'src/testspdy/test_misc.c')
-rw-r--r-- | src/testspdy/test_misc.c | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/src/testspdy/test_misc.c b/src/testspdy/test_misc.c index a39afa66..d8198061 100644 --- a/src/testspdy/test_misc.c +++ b/src/testspdy/test_misc.c | |||
@@ -21,7 +21,7 @@ | |||
21 | * @brief tests a lot of small calls and callbacks. TODO mention what | 21 | * @brief tests a lot of small calls and callbacks. TODO mention what |
22 | * @author Andrey Uzunov | 22 | * @author Andrey Uzunov |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "platform.h" | 25 | #include "platform.h" |
26 | #include "microspdy.h" | 26 | #include "microspdy.h" |
27 | #include "stdio.h" | 27 | #include "stdio.h" |
@@ -93,10 +93,14 @@ create_child() | |||
93 | 93 | ||
94 | void | 94 | void |
95 | response_done_callback(void *cls, | 95 | response_done_callback(void *cls, |
96 | struct SPDY_Response *response, | 96 | struct SPDY_Response * response, |
97 | struct SPDY_Request *request, | 97 | struct SPDY_Request * request, |
98 | enum SPDY_RESPONSE_RESULT status, | ||
98 | bool streamopened) | 99 | bool streamopened) |
99 | { | 100 | { |
101 | (void)status; | ||
102 | (void)streamopened; | ||
103 | |||
100 | if(strcmp(cls,"/main.css")) | 104 | if(strcmp(cls,"/main.css")) |
101 | { | 105 | { |
102 | session1 = SPDY_get_session_for_request(request); | 106 | session1 = SPDY_get_session_for_request(request); |
@@ -152,8 +156,19 @@ standard_request_handler(void *cls, | |||
152 | const char *version, | 156 | const char *version, |
153 | const char *host, | 157 | const char *host, |
154 | const char *scheme, | 158 | const char *scheme, |
155 | struct SPDY_NameValue * headers) | 159 | struct SPDY_NameValue * headers, |
160 | bool more) | ||
156 | { | 161 | { |
162 | (void)cls; | ||
163 | (void)request; | ||
164 | (void)priority; | ||
165 | (void)host; | ||
166 | (void)scheme; | ||
167 | (void)headers; | ||
168 | (void)method; | ||
169 | (void)version; | ||
170 | (void)more; | ||
171 | |||
157 | struct SPDY_Response *response=NULL; | 172 | struct SPDY_Response *response=NULL; |
158 | char *cls_path = strdup(path); | 173 | char *cls_path = strdup(path); |
159 | 174 | ||
@@ -259,7 +274,7 @@ parentproc() | |||
259 | 274 | ||
260 | 275 | ||
261 | int | 276 | int |
262 | main(int argc, char **argv) | 277 | main() |
263 | { | 278 | { |
264 | port = get_port(13123); | 279 | port = get_port(13123); |
265 | SPDY_init(); | 280 | SPDY_init(); |