Lines Matching defs:ctx
40 stream_bucket_ctx_t *ctx = baton;
45 err = svn_stream_read_full(ctx->stream, buf, len);
48 if (ctx->errfunc)
49 ctx->errfunc(ctx->errfunc_baton, err);
61 svn_error_clear(svn_stream_close(ctx->stream));
70 stream_bucket_ctx_t *ctx = bucket->data;
72 return serf_databuf_read(&ctx->databuf, requested, data, len);
79 stream_bucket_ctx_t *ctx = bucket->data;
81 return serf_databuf_readline(&ctx->databuf, acceptable, found, data, len);
87 stream_bucket_ctx_t *ctx = bucket->data;
89 return serf_databuf_peek(&ctx->databuf, data, len);
109 stream_bucket_ctx_t *ctx;
111 ctx = serf_bucket_mem_calloc(allocator, sizeof(*ctx));
112 ctx->stream = stream;
113 ctx->errfunc = errfunc;
114 ctx->errfunc_baton = errfunc_baton;
115 serf_databuf_init(&ctx->databuf);
116 ctx->databuf.read = stream_reader;
117 ctx->databuf.read_baton = ctx;
119 return serf_bucket_create(&stream_bucket_vtable, allocator, ctx);