]> git.0d.be Git - empathy.git/commitdiff
Added ack_message function to EmpathyLogSource interface.
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 6 Mar 2009 11:51:36 +0000 (11:51 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 6 Mar 2009 11:51:36 +0000 (11:51 +0000)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=2583

libempathy/empathy-log-source-empathy.c
libempathy/empathy-log-source.c
libempathy/empathy-log-source.h

index 25270ae745d6f36a7ad78369974f5d74d859514f..c48d730dc1c6e3d064637f73919769135c1c3a6e 100644 (file)
@@ -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;
 }
index e2bc4a67b4573d90133ad93a18883d320fd26e8c..436556dbf1d9e9d53961fe1d2d4fbca37e980878 100644 (file)
@@ -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);
+}
index 50c7876fad73ca13756060f57d24c8665f23a9a0..c9425ef45123a5412436a7cb363e2a730b6d1bbd 100644 (file)
@@ -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