libdlogutil: put logs into vector before polling 98/228798/1
authorMichal Bloch <m.bloch@samsung.com>
Wed, 25 Mar 2020 14:20:43 +0000 (15:20 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Wed, 25 Mar 2020 14:53:02 +0000 (15:53 +0100)
commit7b468d1d908ee8255e5a9646a9a1a42a6049bf6c
treecf6639a079213c56f502f7d75044572ee7f09b58
parent5cf4a003d4f234d490e53c2076b54d55332aff83
libdlogutil: put logs into vector before polling

Eventually we want the API to return a single log. With poll at the
front, it would be done for every log returned, which is unnecessary.

Additionally, remove the "poll returned nothing" condition which
allowed all buffers to be drained at the same time. It shouldn't
be helping much in practice and can be simplified away.

The callback is temporarily not allowed to return 1. This will go
away in the final version of the API.

Change-Id: I4ccb0a613a902484303f651830a946ccc8718130
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/libdlogutil/logretrieve.c
src/tests/logutil.c