diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-02-10 12:52:20 +0000 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-02-10 17:03:36 +0000 |
commit | bbff08720f78a90de3adf536cdc5ddc165a73c13 (patch) | |
tree | 4e19490c68ffe921f3cb7b10abc11a5765bc64e8 /telepathy-logger/log-manager.c | |
parent | 99a5f1c66ee1f182387aff25bbe0e8b2d36c6e89 (diff) | |
download | telepathy-logger-bbff08720f78a90de3adf536cdc5ddc165a73c13.tar.gz |
Implement clear_entity in TplLogManager
Diffstat (limited to 'telepathy-logger/log-manager.c')
-rw-r--r-- | telepathy-logger/log-manager.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/telepathy-logger/log-manager.c b/telepathy-logger/log-manager.c index 7503113..fdf76f8 100644 --- a/telepathy-logger/log-manager.c +++ b/telepathy-logger/log-manager.c @@ -920,6 +920,25 @@ _tpl_log_manager_clear_account (TplLogManager *self, } +void +_tpl_log_manager_clear_entity (TplLogManager *self, + TpAccount *account, + TplEntity *entity) +{ + GList *l; + TplLogManagerPriv *priv; + + g_return_if_fail (TPL_IS_LOG_MANAGER (self)); + + priv = self->priv; + + for (l = priv->stores; l != NULL; l = g_list_next (l)) + { + _tpl_log_store_clear_entity (TPL_LOG_STORE (l->data), account, entity); + } +} + + /* There is no g_date_copy() */ static GDate * copy_date (const GDate *date) |