diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-11-23 16:50:41 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-11-23 16:50:41 +0100 |
commit | 13669d2508f1a8caacc838ea1bcd45f42ee1fbc1 (patch) | |
tree | 922ba2b17c8b7a88c80b0081d441c365a50ed46c | |
parent | 2ca2168a92af8568e9f4c22c72463779c707d6fd (diff) | |
download | telepathy-logger-13669d2508f1a8caacc838ea1bcd45f42ee1fbc1.tar.gz |
add _tpl_log_manager_search_hit_copy()
-rw-r--r-- | telepathy-logger/log-manager-internal.h | 2 | ||||
-rw-r--r-- | telepathy-logger/log-manager.c | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/telepathy-logger/log-manager-internal.h b/telepathy-logger/log-manager-internal.h index 6072f6f..e247603 100644 --- a/telepathy-logger/log-manager-internal.h +++ b/telepathy-logger/log-manager-internal.h @@ -95,4 +95,6 @@ void _tpl_log_manager_search_hit_free (TplLogSearchHit *hit); gint _tpl_log_manager_search_hit_compare (TplLogSearchHit *a, TplLogSearchHit *b); +TplLogSearchHit * _tpl_log_manager_search_hit_copy (TplLogSearchHit *hit); + #endif /* __TPL_LOG_MANAGER_PRIV_H__ */ diff --git a/telepathy-logger/log-manager.c b/telepathy-logger/log-manager.c index 99435ff..5cb94cf 100644 --- a/telepathy-logger/log-manager.c +++ b/telepathy-logger/log-manager.c @@ -1608,3 +1608,10 @@ tpl_log_manager_errors_quark (void) return (GQuark) quark; } + +TplLogSearchHit * +_tpl_log_manager_search_hit_copy (TplLogSearchHit *hit) +{ + return _tpl_log_manager_search_hit_new (hit->account, hit->chat_id, + hit->is_chatroom, hit->filename, hit->date); +} |