comparison src/protocols/msn/command.h @ 9193:502707ca1836

[gaim-migrate @ 9988] Patch by Felipe Contreras to add MSN file transfer and buddy icons. Please test and report any bugs! committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 06 Jun 2004 02:39:08 +0000
parents a7affa2e2986
children ab6636c5a136
comparison
equal deleted inserted replaced
9192:5655dcd94d0f 9193:502707ca1836
25 typedef struct _MsnCommand MsnCommand; 25 typedef struct _MsnCommand MsnCommand;
26 26
27 #include "cmdproc.h" 27 #include "cmdproc.h"
28 #include "transaction.h" 28 #include "transaction.h"
29 29
30 /* typedef void (*MsnPayloadCb)(MsnCmdProc *cmdproc, MsnCommand *cmd, char 30 #if 1
31 * *payload, size_t len); */ 31 typedef void (*MsnPayloadCb)(MsnCmdProc *cmdproc, MsnCommand *cmd,
32 char *payload, size_t len);
33 #endif
32 34
33 /** 35 /**
34 * A received command. 36 * A received command.
35 */ 37 */
36 struct _MsnCommand 38 struct _MsnCommand
42 int param_count; 44 int param_count;
43 45
44 int ref_count; 46 int ref_count;
45 47
46 MsnTransaction *trans; 48 MsnTransaction *trans;
47 /* MsnPayloadCb payload_cb; */ 49
50 char *payload;
51 size_t payload_len;
52
53 MsnPayloadCb payload_cb;
48 }; 54 };
49 55
50 MsnCommand *msn_command_from_string(const char *string); 56 MsnCommand *msn_command_from_string(const char *string);
51 void msn_command_destroy(MsnCommand *cmd); 57 void msn_command_destroy(MsnCommand *cmd);
52 MsnCommand *msn_command_ref(MsnCommand *cmd); 58 MsnCommand *msn_command_ref(MsnCommand *cmd);