Lines Matching refs:bufev_f
168 struct bufferevent_filtered *bufev_f;
179 bufev_f = mm_calloc(1, sizeof(struct bufferevent_filtered));
180 if (!bufev_f)
183 if (bufferevent_init_common(&bufev_f->bev, underlying->ev_base,
185 mm_free(bufev_f);
189 bufferevent_enable_locking(downcast(bufev_f), NULL);
192 bufev_f->underlying = underlying;
194 bufev_f->process_in = input_filter;
195 bufev_f->process_out = output_filter;
196 bufev_f->free_context = free_context;
197 bufev_f->context = ctx;
199 bufferevent_setcb(bufev_f->underlying,
200 be_filter_readcb, be_filter_writecb, be_filter_eventcb, bufev_f);
202 bufev_f->outbuf_cb = evbuffer_add_cb(downcast(bufev_f)->output,
203 bufferevent_filtered_outbuf_cb, bufev_f);
205 _bufferevent_init_generic_timeout_cbs(downcast(bufev_f));
211 return downcast(bufev_f);