]> mj.ucw.cz Git - libucw.git/commit
Main recio: Allow rec_io_(start|stop)_read from the read_handler
authorMartin Mares <mj@ucw.cz>
Thu, 9 Jun 2011 16:04:26 +0000 (18:04 +0200)
committerMartin Mares <mj@ucw.cz>
Thu, 9 Jun 2011 16:04:26 +0000 (18:04 +0200)
commit42f0e0e3c19a22cd0643f7f8739d0e9585904f0c
treed1e220df48ddc96244b2c39abedbb132668fd0cc
parent659113e90f80925893f4adbaafc48c5f0ca5f566
Main recio: Allow rec_io_(start|stop)_read from the read_handler

This involves rescanning the read buffer on rec_io_start_read()
as there might be leftover data from previous invokations of the
read_handler.

However, we have to be careful to avoid arbitrarily deep recursion
of various handlers. We do that by deferring the actual start of
reading to a main_hook.
ucw/main-rec.c
ucw/mainloop.h