comparison src/c/request.c @ 1334:a1aa62b472cf

Change Basis.debug to use the protocol's debug function
author Adam Chlipala <adam@chlipala.net>
date Sun, 12 Dec 2010 10:35:04 -0500
parents 1cc67fdac4d3
children b106ca8200b1
comparison
equal deleted inserted replaced
1333:dab85a49e0ab 1334:a1aa62b472cf
33 33
34 return r; 34 return r;
35 } 35 }
36 36
37 uw_context uw_request_new_context(uw_app *app, void *logger_data, uw_logger log_error, uw_logger log_debug) { 37 uw_context uw_request_new_context(uw_app *app, void *logger_data, uw_logger log_error, uw_logger log_debug) {
38 uw_context ctx = uw_init(); 38 uw_context ctx = uw_init(logger_data, log_debug);
39 int retries_left = MAX_RETRIES; 39 int retries_left = MAX_RETRIES;
40 uw_set_app(ctx, app); 40 uw_set_app(ctx, app);
41 41
42 while (1) { 42 while (1) {
43 failure_kind fk = uw_begin_init(ctx); 43 failure_kind fk = uw_begin_init(ctx);