diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-02-10 10:52:51 +0000 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-02-10 17:03:36 +0000 |
commit | 0bda6a9474ded4368217f42df552955f3fc6e4af (patch) | |
tree | 41403db3801650148f2fb06d5bde81556fe8735c /telepathy-logger/log-manager.c | |
parent | 2a38f4c8975ff933e1790b7d50bd6c058b459c4a (diff) | |
download | telepathy-logger-0bda6a9474ded4368217f42df552955f3fc6e4af.tar.gz |
Implement clear_account method in LogManager
Diffstat (limited to 'telepathy-logger/log-manager.c')
-rw-r--r-- | telepathy-logger/log-manager.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/telepathy-logger/log-manager.c b/telepathy-logger/log-manager.c index 779f41e..7503113 100644 --- a/telepathy-logger/log-manager.c +++ b/telepathy-logger/log-manager.c @@ -902,6 +902,24 @@ _tpl_log_manager_clear (TplLogManager *self) } +void +_tpl_log_manager_clear_account (TplLogManager *self, + TpAccount *account) +{ + 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_account (TPL_LOG_STORE (l->data), account); + } +} + + /* There is no g_date_copy() */ static GDate * copy_date (const GDate *date) |