chore, adhere to signature changes (echs_stream() taking a closure object)

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, don't refill the event pool right away

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, operate on closures, make_echs_stream() entry function ...

returns a stream_t object (fun+clo).  And free_echs_stream() takes a
stream_t and finalises the closure (and function if need be).

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, wipe old DSO entry points (echs_stream(), init_stream(), fini_stream())

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, PEBKAC, hand in the actual instant to echs_open()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, convert xmas DSO to new entry points and make it a simple state machine

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, PEBKAC, properly initialise echse clo object, and set rfll and last upon success

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, handle the case of no usable streams in echse tool

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, convert easter DSO to new entry points and make it a simple state machine

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, allow first event to occur on starting instant

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, also finish boxing day if start event falls on the 27th of the 12th

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, start out with no prior knowledge of what the best index could be in echse.c's __stream()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, convert new-year DSO to new entry points and make it a simple state machine

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, convert weekend DSO to new entry points and make it a simple state machine

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
hygiene, make cast function types more explicit (don't leave out input signature)

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, PEBKAC, hand stream_t object to a DSO's free_echs_stream() fun

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, in echs-file's stream ctor seek to the first line after INST

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
hygiene, don't strchr() for newline in getline() snarfed lines

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
hygiene, refactor refill and catch the inst == 0 case early

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
hygiene, provide a set of __event_*_p() predicates modelled after their __inst_*_p() counterparts

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>