aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/httpcli/httpcli.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/httpcli/httpcli.h')
-rw-r--r--src/core/httpcli/httpcli.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/core/httpcli/httpcli.h b/src/core/httpcli/httpcli.h
index c45966714c..74bb123042 100644
--- a/src/core/httpcli/httpcli.h
+++ b/src/core/httpcli/httpcli.h
@@ -62,7 +62,9 @@ typedef struct grpc_httpcli_context {
typedef struct {
const char *default_port;
void (*handshake)(void *arg, grpc_endpoint *endpoint, const char *host,
- void (*on_done)(void *arg, grpc_endpoint *endpoint));
+ void (*on_done)(void *arg, grpc_endpoint *endpoint,
+ grpc_call_list *call_list),
+ grpc_call_list *call_list);
} grpc_httpcli_handshaker;
extern const grpc_httpcli_handshaker grpc_httpcli_plaintext;
@@ -97,7 +99,8 @@ typedef struct grpc_httpcli_response {
/* Callback for grpc_httpcli_get and grpc_httpcli_post. */
typedef void (*grpc_httpcli_response_cb)(void *user_data,
- const grpc_httpcli_response *response);
+ const grpc_httpcli_response *response,
+ grpc_call_list *call_list);
void grpc_httpcli_context_init(grpc_httpcli_context *context);
void grpc_httpcli_context_destroy(grpc_httpcli_context *context);
@@ -115,7 +118,8 @@ void grpc_httpcli_context_destroy(grpc_httpcli_context *context);
void grpc_httpcli_get(grpc_httpcli_context *context, grpc_pollset *pollset,
const grpc_httpcli_request *request,
gpr_timespec deadline,
- grpc_httpcli_response_cb on_response, void *user_data);
+ grpc_httpcli_response_cb on_response, void *user_data,
+ grpc_call_list *call_list);
/* Asynchronously perform a HTTP POST.
'context' specifies the http context under which to do the post
@@ -136,7 +140,8 @@ void grpc_httpcli_post(grpc_httpcli_context *context, grpc_pollset *pollset,
const grpc_httpcli_request *request,
const char *body_bytes, size_t body_size,
gpr_timespec deadline,
- grpc_httpcli_response_cb on_response, void *user_data);
+ grpc_httpcli_response_cb on_response, void *user_data,
+ grpc_call_list *call_list);
/* override functions return 1 if they handled the request, 0 otherwise */
typedef int (*grpc_httpcli_get_override)(const grpc_httpcli_request *request,