diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-02-09 10:34:04 +0000 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-02-10 17:03:36 +0000 |
commit | f89d14a18f2d1b8fd9759a3faf12119d2f35c787 (patch) | |
tree | 5e411ada4195c59ea11267422e4e381e2103aaf9 /telepathy-logger/log-manager.c | |
parent | 97a1d04cf669f34ffa10715c644308e090ca574c (diff) | |
download | telepathy-logger-f89d14a18f2d1b8fd9759a3faf12119d2f35c787.tar.gz |
Implement clear method in TplLogManager
Diffstat (limited to 'telepathy-logger/log-manager.c')
-rw-r--r-- | telepathy-logger/log-manager.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/telepathy-logger/log-manager.c b/telepathy-logger/log-manager.c index fcdc81c..779f41e 100644 --- a/telepathy-logger/log-manager.c +++ b/telepathy-logger/log-manager.c @@ -885,6 +885,23 @@ _tpl_log_manager_async_operation_cb (GObject *source_object, } +void +_tpl_log_manager_clear (TplLogManager *self) +{ + 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 (TPL_LOG_STORE (l->data)); + } +} + + /* There is no g_date_copy() */ static GDate * copy_date (const GDate *date) |