diff options
author | Debarshi Ray <debarshir@freedesktop.org> | 2012-08-31 14:18:43 +0200 |
---|---|---|
committer | Debarshi Ray <debarshir@freedesktop.org> | 2013-01-09 15:32:59 +0100 |
commit | 7818d410e868a1bd8a42eb0de1a754387561cedc (patch) | |
tree | f3ad7169985a10aa7748b735910397fda0586b4b /telepathy-logger/log-store-xml.c | |
parent | d7302bd2c4ae43a962a293b53998bd03423adba4 (diff) | |
download | telepathy-logger-7818d410e868a1bd8a42eb0de1a754387561cedc.tar.gz |
log-walker: Run the filter synchronously in the walker
This ensures that the TplLogEventFilter is always run from the same
thread which invoked the walker. This is implemented by keeping track
of skipped events in the history instead of silently ignoring them
within the LogIters. This has the nice side effect that we do not need
to run the filter while rewinding.
Fixes: https://bugs.freedesktop.org/54270
Diffstat (limited to 'telepathy-logger/log-store-xml.c')
-rw-r--r-- | telepathy-logger/log-store-xml.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/telepathy-logger/log-store-xml.c b/telepathy-logger/log-store-xml.c index a723964..f02785a 100644 --- a/telepathy-logger/log-store-xml.c +++ b/telepathy-logger/log-store-xml.c @@ -1921,16 +1921,13 @@ static TplLogIter * log_store_xml_create_iter (TplLogStore *store, TpAccount *account, TplEntity *target, - gint type_mask, - TplLogEventFilter filter, - gpointer filter_data) + gint type_mask) { g_return_val_if_fail (TPL_IS_LOG_STORE_XML (store), NULL); g_return_val_if_fail (TP_IS_ACCOUNT (account), NULL); g_return_val_if_fail (TPL_IS_ENTITY (target), NULL); - return tpl_log_iter_xml_new (store, account, target, type_mask, filter, - filter_data); + return tpl_log_iter_xml_new (store, account, target, type_mask); } |