Lines Matching defs:handler
170 /* the big map of protocol handler info */
1023 struct proto_handler *handler;
1032 handler = proto_map+c->request;
1036 if (!handler->proc) {
1041 if (handler->data_length == 0) {
1044 if (handler->proc(c, c->request, NULL, 0) < 0)
1048 if (c->read_data_alloc < handler->data_length)
1049 c->read_data = pa_xrealloc(c->read_data, c->read_data_alloc = handler->data_length);
1059 struct proto_handler *handler = proto_map+c->request;
1061 pa_assert(handler->proc);
1063 pa_assert(c->read_data && c->read_data_length < handler->data_length);
1067 handler->data_length - c->read_data_length)) <= 0) {
1077 if (c->read_data_length >= handler->data_length) {
1079 pa_assert(handler->proc);
1084 if (handler->proc(c, c->request, c->read_data, l) < 0)
1358 /* The default handler will add in the extra latency added by the resampler. */