src/protocols/msn/msg.h

changeset 10225
0dfea1bc8695
parent 9198
e8eb6d5eb9eb
child 10345
7d7f8cfa2b4f
--- a/src/protocols/msn/msg.h	Sun Nov 21 06:16:23 2004 +0000
+++ b/src/protocols/msn/msg.h	Sun Nov 21 17:48:09 2004 +0000
@@ -32,6 +32,9 @@
 #include "command.h"
 #include "transaction.h"
 
+typedef void (*MsnCb)(void *data);
+
+/*
 typedef enum
 {
 	MSN_MSG_NORMAL,
@@ -39,6 +42,17 @@
 	MSN_MSG_SLP_DC
 
 } MsnMsgType;
+*/
+
+typedef enum
+{
+	MSN_MSG_UNKNOWN,
+	MSN_MSG_TEXT,
+	MSN_MSG_TYPING,
+	MSN_MSG_CAPS,
+	MSN_MSG_SLP
+
+} MsnMsgType;
 
 typedef struct
 {
@@ -88,7 +102,7 @@
 	MsnCommand *cmd;
 	MsnTransaction *trans;
 
-	MsnTransCb ack_cb;
+	MsnCb ack_cb;
 	void *ack_data;
 };
 
@@ -97,7 +111,7 @@
  *
  * @return A new message.
  */
-MsnMessage *msn_message_new(void);
+MsnMessage *msn_message_new(MsnMsgType type);
 
 /**
  * Creates a new, empty MSNSLP message.
@@ -299,5 +313,6 @@
 
 char *msn_message_gen_slp_body(MsnMessage *msg, size_t *ret_size);
 
+char *msn_message_to_string(MsnMessage *msg);
 
 #endif /* _MSN_MSG_H_ */

mercurial