summaryrefslogtreecommitdiff
path: root/telepathy-logger/log-manager.c
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-03-15 13:10:11 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-03-15 13:10:11 -0400
commit934c602751618019c79d592e899bb028e62cbf6f (patch)
treec0ef91903bf1436a7d9f9cbe7f6383ee64c9c9ea /telepathy-logger/log-manager.c
parent2cd78160f40fc43a79cc0c72bdb055cc61e5304b (diff)
downloadtelepathy-logger-934c602751618019c79d592e899bb028e62cbf6f.tar.gz
Move _tpl_entity_compare into TplEntity class
Diffstat (limited to 'telepathy-logger/log-manager.c')
-rw-r--r--telepathy-logger/log-manager.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/telepathy-logger/log-manager.c b/telepathy-logger/log-manager.c
index 00229c4..dbe748c 100644
--- a/telepathy-logger/log-manager.c
+++ b/telepathy-logger/log-manager.c
@@ -35,6 +35,7 @@
#include <telepathy-glib/util.h>
#include <telepathy-logger/conf-internal.h>
+#include <telepathy-logger/entity-internal.h>
#include <telepathy-logger/event.h>
#include <telepathy-logger/event-internal.h>
#include <telepathy-logger/log-store-internal.h>
@@ -641,32 +642,6 @@ _tpl_log_manager_get_filtered_events (TplLogManager *manager,
/*
- * _tpl_entity_compare:
- * @a: a #TplEntity
- * @b: a #TplEntity
- *
- * Compares @a and @b.
- *
- * Returns: 0 if a == b, -1 if a < b, 1 otherwise.
- */
-gint
-_tpl_entity_compare (TplEntity *a,
- TplEntity *b)
-{
- g_return_val_if_fail (TPL_IS_ENTITY (a), TPL_IS_ENTITY (b) ? -1 : 0);
- g_return_val_if_fail (TPL_IS_ENTITY (b), 1);
-
- if (tpl_entity_get_entity_type (a) == tpl_entity_get_entity_type (b))
- return g_strcmp0 (tpl_entity_get_identifier (a),
- tpl_entity_get_identifier (b));
- else if (tpl_entity_get_entity_type (a) < tpl_entity_get_entity_type (b))
- return -1;
- else
- return 1;
-}
-
-
-/*
* _tpl_log_manager_get_entities
* @manager: the log manager
* @account: a TpAccount the query will return data related to