diff src/protocols/msn/switchboard.h @ 8808:bbd8cdaf0ad5

[gaim-migrate @ 9570] A massive patch by shx to reorganize MSN some more and add command processor support. This allows us to do cool things like produce more detailed error messages. For example, the Invalid Username dialog now shows the username of the invalid user. I modified the aforementioned dialog so it'll look a little nicer looking, and also mention the account this happened on. It also removes the user from your blist, as there's no point to keeping the user on there. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 25 Apr 2004 22:02:06 +0000
parents fc27237783ee
children c30d81b4dd22
line wrap: on
line diff
--- a/src/protocols/msn/switchboard.h	Sun Apr 25 17:01:38 2004 +0000
+++ b/src/protocols/msn/switchboard.h	Sun Apr 25 22:02:06 2004 +0000
@@ -29,11 +29,13 @@
 #include "msg.h"
 #include "msnslp.h"
 #include "servconn.h"
+#include "cmdproc.h"
 #include "user.h"
 
 struct _MsnSwitchBoard
 {
 	MsnServConn *servconn;
+	MsnCmdProc *cmdproc;
 	MsnUser *user;
 
 	char *auth_key;
@@ -45,6 +47,7 @@
 	GaimConversation *chat;
 
 	gboolean in_use;
+	gboolean joined;
 
 	int total_users;
 
@@ -52,7 +55,6 @@
 	int msglen;
 
 	int chat_id;
-	int trId;
 
 	gboolean hidden;
 
@@ -60,6 +62,16 @@
 };
 
 /**
+ * Initialize the variables for switchboard creation.
+ */
+void msn_switchboard_init(void);
+
+/**
+ * Destroy the variables for switchboard creation.
+ */
+void msn_switchboard_end(void);
+
+/**
  * Creates a new switchboard.
  *
  * @param session The MSN session.
@@ -167,23 +179,8 @@
  *
  * @param swboard The switchboard.
  * @param msg     The message to send.
- *
- * @return @c TRUE if successful, or @c FALSE otherwise.
  */
-gboolean msn_switchboard_send_msg(MsnSwitchBoard *swboard,
-								  MsnMessage *msg);
-
-/**
- * Sends a command to the switchboard.
- *
- * @param swboard The switchboard.
- * @param command The command.
- * @param params  The parameters.
- *
- * @return @c TRUE if successful, or @c FALSE otherwise.
- */
-gboolean msn_switchboard_send_command(MsnSwitchBoard *swboard,
-									  const char *command,
-									  const char *params);
+void msn_switchboard_send_msg(MsnSwitchBoard *swboard,
+							  MsnMessage *msg);
 
 #endif /* _MSN_SWITCHBOARD_H_ */