aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-03-06 19:51:36 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-06 19:51:36 +0800
commit5145abe6c2da274ad46c7fad47cd93d59d121b12 (patch)
treefe6c6ff89d67a218cb15ca094ce0de9532ea788d /libempathy
parentb51a83c1297f7ba3f550d8f31439b2d5b4e86c99 (diff)
downloadgsoc2013-empathy-5145abe6c2da274ad46c7fad47cd93d59d121b12.tar
gsoc2013-empathy-5145abe6c2da274ad46c7fad47cd93d59d121b12.tar.gz
gsoc2013-empathy-5145abe6c2da274ad46c7fad47cd93d59d121b12.tar.bz2
gsoc2013-empathy-5145abe6c2da274ad46c7fad47cd93d59d121b12.tar.lz
gsoc2013-empathy-5145abe6c2da274ad46c7fad47cd93d59d121b12.tar.xz
gsoc2013-empathy-5145abe6c2da274ad46c7fad47cd93d59d121b12.tar.zst
gsoc2013-empathy-5145abe6c2da274ad46c7fad47cd93d59d121b12.zip
Added ack_message function to EmpathyLogSource interface.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2583
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-log-source-empathy.c1
-rw-r--r--libempathy/empathy-log-source.c10
-rw-r--r--libempathy/empathy-log-source.h4
3 files changed, 15 insertions, 0 deletions
diff --git a/libempathy/empathy-log-source-empathy.c b/libempathy/empathy-log-source-empathy.c
index 25270ae74..c48d730dc 100644
--- a/libempathy/empathy-log-source-empathy.c
+++ b/libempathy/empathy-log-source-empathy.c
@@ -694,4 +694,5 @@ log_source_iface_init (gpointer g_iface,
iface->get_messages_for_date = log_source_empathy_get_messages_for_date;
iface->get_chats = log_source_empathy_get_chats;
iface->search_new = log_source_empathy_search_new;
+ iface->ack_message = NULL;
}
diff --git a/libempathy/empathy-log-source.c b/libempathy/empathy-log-source.c
index e2bc4a67b..436556dbf 100644
--- a/libempathy/empathy-log-source.c
+++ b/libempathy/empathy-log-source.c
@@ -110,3 +110,13 @@ empathy_log_source_search_new (EmpathyLogSource *self,
{
return EMPATHY_LOG_SOURCE_GET_INTERFACE (self)->search_new (self, text);
}
+
+void
+empathy_log_source_ack_message (EmpathyLogSource *self,
+ const gchar *chat_id,
+ gboolean chatroom,
+ EmpathyMessage *message)
+{
+ EMPATHY_LOG_SOURCE_GET_INTERFACE (self)->ack_message (
+ self, chat_id, chatroom, message);
+}
diff --git a/libempathy/empathy-log-source.h b/libempathy/empathy-log-source.h
index 50c7876fa..c9425ef45 100644
--- a/libempathy/empathy-log-source.h
+++ b/libempathy/empathy-log-source.h
@@ -62,6 +62,8 @@ struct _EmpathyLogSourceInterface
GList * (*get_chats) (EmpathyLogSource *self,
McAccount *account);
GList * (*search_new) (EmpathyLogSource *self, const gchar *text);
+ void (*ack_message) (EmpathyLogSource *self, const gchar *chat_id,
+ gboolean chatroom, EmpathyMessage *message);
};
GType empathy_log_source_get_type (void) G_GNUC_CONST;
@@ -81,6 +83,8 @@ GList *empathy_log_source_get_chats (EmpathyLogSource *self,
McAccount *account);
GList *empathy_log_source_search_new (EmpathyLogSource *self,
const gchar *text);
+void empathy_log_source_ack_message (EmpathyLogSource *self,
+ const gchar *chat_id, gboolean chatroom, EmpathyMessage *message);
G_END_DECLS