comparison libpurple/protocols/msn/transaction.h @ 31292:47b6eda87723

propagate from branch 'im.pidgin.pidgin' (head 07d0765c444a097af45c2650f54323afb900a07b) to branch 'im.pidgin.soc.2010.msn-tlc' (head f3998422a4724ab424e4e2328f58fc0504856557)
author masca@cpw.pidgin.im
date Mon, 19 Jul 2010 21:11:32 +0000
parents e8e4c4207d30
children
comparison
equal deleted inserted replaced
30698:e874875a74a7 31292:47b6eda87723
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
23 */ 23 */
24 #ifndef MSN_TRANSACTION_H 24 #ifndef MSN_TRANSACTION_H
25 #define MSN_TRANSACTION_H 25 #define MSN_TRANSACTION_H
26 26
27 #include "internal.h"
28
27 typedef struct _MsnTransaction MsnTransaction; 29 typedef struct _MsnTransaction MsnTransaction;
28 30
29 #include "cmdproc.h" 31 #include "cmdproc.h"
30 #include "command.h" 32 #include "command.h"
31 33
38 * A transaction. A sending command that will initiate the transaction. 40 * A transaction. A sending command that will initiate the transaction.
39 */ 41 */
40 struct _MsnTransaction 42 struct _MsnTransaction
41 { 43 {
42 MsnCmdProc *cmdproc; 44 MsnCmdProc *cmdproc;
43 unsigned int trId; 45
46 gboolean saveable; /**< Whether to save this transaction in the history */
47 unsigned int trId; /**< The ID of this transaction, if it's being saved */
44 48
45 char *command; 49 char *command;
46 char *params; 50 char *params;
47 51
48 guint timer; 52 guint timer;
72 void msn_transaction_unqueue_cmd(MsnTransaction *trans, MsnCmdProc *cmdproc); 76 void msn_transaction_unqueue_cmd(MsnTransaction *trans, MsnCmdProc *cmdproc);
73 void msn_transaction_set_payload(MsnTransaction *trans, 77 void msn_transaction_set_payload(MsnTransaction *trans,
74 const char *payload, int payload_len); 78 const char *payload, int payload_len);
75 void msn_transaction_set_data(MsnTransaction *trans, void *data); 79 void msn_transaction_set_data(MsnTransaction *trans, void *data);
76 void msn_transaction_set_data_free(MsnTransaction *trans, GDestroyNotify fn); 80 void msn_transaction_set_data_free(MsnTransaction *trans, GDestroyNotify fn);
81 void msn_transaction_set_saveable(MsnTransaction *trans, gboolean saveable);
77 void msn_transaction_add_cb(MsnTransaction *trans, char *answer, 82 void msn_transaction_add_cb(MsnTransaction *trans, char *answer,
78 MsnTransCb cb); 83 MsnTransCb cb);
79 void msn_transaction_set_error_cb(MsnTransaction *trans, MsnErrorCb cb); 84 void msn_transaction_set_error_cb(MsnTransaction *trans, MsnErrorCb cb);
80 void msn_transaction_set_timeout_cb(MsnTransaction *trans, MsnTimeoutCb cb); 85 void msn_transaction_set_timeout_cb(MsnTransaction *trans, MsnTimeoutCb cb);
81 86