diff options
author | Debarshi Ray <debarshir@freedesktop.org> | 2012-07-11 19:42:58 +0200 |
---|---|---|
committer | Debarshi Ray <debarshir@freedesktop.org> | 2012-08-28 19:37:57 +0200 |
commit | 401e164871a9664de951f287d335bf58372ee4c4 (patch) | |
tree | 318ce675617c5429ae414d125d2b8924f49f3f51 /telepathy-logger/log-walker.h | |
parent | e1188dea59d3cbdc4999ae92b1a36a20ad1bf602 (diff) | |
download | telepathy-logger-401e164871a9664de951f287d335bf58372ee4c4.tar.gz |
log-walker: Keep a list of (iter, count) tuples
This represents the order in which events were handed over to the user
from each iterator. Lets say we have 10 events numbered from 0 to 9,
with 0 being the oldest and 9 the latest event, and we have 3
iterators Ia, Ib and Ic. If they were returned in batches of 5 as:
+-----+--------+
|event|iterator|
+-----+--------+
| 5 | Ia |
| 6 | Ib |
| 7 | Ia |
| 8 | Ia |
| 9 | Ic |
+ - - + - -- - +
| 0 | Ic |
| 1 | Ic |
| 2 | Ib |
| 3 | Ib |
| 4 | Ia |
+-----+--------+
Then the list would be:
(Ic, 2), (Ib, 2), (Ia, 2), (Ib, 1), (Ia, 2), (Ic, 1)
Fixes: https://bugs.freedesktop.org/41772
Diffstat (limited to 'telepathy-logger/log-walker.h')
0 files changed, 0 insertions, 0 deletions