summaryrefslogtreecommitdiff
path: root/libpurple/protocols/msn/cmdproc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpurple/protocols/msn/cmdproc.h')
-rw-r--r--libpurple/protocols/msn/cmdproc.h36
1 files changed, 31 insertions, 5 deletions
diff --git a/libpurple/protocols/msn/cmdproc.h b/libpurple/protocols/msn/cmdproc.h
index 4b13087861..68de2451ec 100644
--- a/libpurple/protocols/msn/cmdproc.h
+++ b/libpurple/protocols/msn/cmdproc.h
@@ -27,7 +27,6 @@
typedef struct _MsnCmdProc MsnCmdProc;
#include "command.h"
-#include "error.h"
#include "history.h"
#include "servconn.h"
#include "session.h"
@@ -51,18 +50,45 @@ struct _MsnCmdProc
void *data; /**< Extra data, like the switchboard. */
};
+/**
+ * Creates a MsnCmdProc structure.
+ *
+ * @param session The session to associate with.
+ *
+ * @return A new MsnCmdProc structure.
+ */
MsnCmdProc *msn_cmdproc_new(MsnSession *session);
+
+/**
+ * Destroys an MsnCmdProc.
+ *
+ * @param cmdproc The object structure.
+ */
void msn_cmdproc_destroy(MsnCmdProc *cmdproc);
+/**
+ * Process the queued transactions.
+ *
+ * @param cmdproc The MsnCmdProc.
+ */
void msn_cmdproc_process_queue(MsnCmdProc *cmdproc);
+/**
+ * Sends transaction using this servconn.
+ *
+ * @param cmdproc The MsnCmdProc to be used.
+ * @param trans The MsnTransaction to be sent.
+ */
void msn_cmdproc_send_trans(MsnCmdProc *cmdproc, MsnTransaction *trans);
+
+/**
+ * Add a transaction to the queue to be processed latter.
+ *
+ * @param cmdproc The MsnCmdProc in which the transaction will be queued.
+ * @param trans The MsnTransaction to be queued.
+ */
void msn_cmdproc_queue_trans(MsnCmdProc *cmdproc,
MsnTransaction *trans);
-void msn_cmdproc_send(MsnCmdProc *cmdproc, const char *command,
- const char *format, ...);
-void msn_cmdproc_send_quick(MsnCmdProc *cmdproc, const char *command,
- const char *format, ...);
void msn_cmdproc_process_msg(MsnCmdProc *cmdproc,
MsnMessage *msg);