diff doc/conversation-signals.dox @ 10104:60db14d54914

[gaim-migrate @ 11131] "This patch that makes received-im-msg and received-chat-msg signals correspond with each other. My motivation was to add flags to received-chat-msg, but I also added conv to received-im-msg to make the signals match each other." -- Nathan Fredrickson (noif) I also updated the receiving-im-msg and receiving-chat-msg signals to match. Now I can finally reject patch 909745 with "this should be a plugin", which I've wanted to be able to say for a while. Yay :) committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 16 Oct 2004 15:07:22 +0000
parents 5e1c76f3d232
children e4459e8ccfb5
line wrap: on
line diff
--- a/doc/conversation-signals.dox	Sat Oct 16 01:05:40 2004 +0000
+++ b/doc/conversation-signals.dox	Sat Oct 16 15:07:22 2004 +0000
@@ -124,7 +124,7 @@
  @signaldef receiving-im-msg
   @signalproto
 gboolean (*receiving_im_msg)(GaimAccount *account, char **sender,
-                            char **message, int *flags);
+                            char **message, GaimConversation *conv, int *flags);
   @endsignalproto
   @signaldesc
    Emitted when an IM is received. The callback can replace the name of the
@@ -137,20 +137,22 @@
   @param account The account the message was received on.
   @param sender  A pointer to the username of the sender.
   @param message A pointer to the message that was sent.
-  @param flags   The message flags.
+  @param conv    The IM conversation.
+  @param flags   A pointer to the IM message flags.
  @endsignaldef
 
  @signaldef received-im-msg
   @signalproto
-void (*received_im_msg)(GaimAccount *account, char *sender,
-                            char *message, int flags);
+void (*received_im_msg)(GaimAccount *account, char *sender, char *message,
+                            GaimConversation *conv, int flags);
   @endsignalproto
   @signaldesc
    Emitted after an IM is received.
   @param account The account the message was received on.
   @param sender  The username of the sender.
   @param message The message that was sent.
-  @param flags   The message flags.
+  @param conv    The IM conversation.
+  @param flags   The IM message flags.
  @endsignaldef
 
  @signaldef writing-chat-msg
@@ -241,11 +243,11 @@
  @signaldef receiving-chat-msg
   @signalproto
 gboolean (*receiving_chat_msg)(GaimAccount *account, char **sender,
-                              char **message, GaimConversation *conv);
+                              char **message, GaimConversation *conv, int *flags);
   @endsignalproto
   @signaldesc
    Emitted when a chat message is received. The callback can replace the
-   name of the sender or the messageby modifying the pointer to the
+   name of the sender, the message, or the flags by modifying the pointer to the
    strings. This can also be used to cancel displaying a message by
    returning @c TRUE.
   @note
@@ -255,12 +257,13 @@
   @param sender  A pointer to the username of the sender.
   @param message A pointer to the message that was sent.
   @param conv    The chat conversation.
+  @param flags   A pointer to the chat message flags
  @endsignaldef
 
  @signaldef received-chat-msg
   @signalproto
-void (*received_chat_msg)(GaimAccount *account, char *sender,
-                              char *message, GaimConversation *conv);
+void (*received_chat_msg)(GaimAccount *account, char *sender, char *message,
+                              GaimConversation *conv, int flags);
   @endsignalproto
   @signaldesc
    Emitted after a chat message is received.
@@ -268,6 +271,7 @@
   @param sender  The username of the sender.
   @param message The message that was sent.
   @param conv    The chat conversation.
+  @param flags   The chat message flags.
  @endsignaldef
 
  @signaldef conversation-switching