Mercurial > pidgin
comparison src/protocols/msn/transaction.h @ 8810:a7affa2e2986
[gaim-migrate @ 9572]
Forgot these.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 25 Apr 2004 23:40:13 +0000 |
parents | |
children | 502707ca1836 |
comparison
equal
deleted
inserted
replaced
8809:fde4101fa183 | 8810:a7affa2e2986 |
---|---|
1 /** | |
2 * @file transaction.h MSN transaction functions | |
3 * | |
4 * gaim | |
5 * | |
6 * Copyright (C) 2003, Christian Hammond <chipx86@gnupdate.org> | |
7 * | |
8 * This program is free software; you can redistribute it and/or modify | |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2 of the License, or | |
11 * (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License | |
19 * along with this program; if not, write to the Free Software | |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
21 */ | |
22 #ifndef _MSN_TRANSACTION_H | |
23 #define _MSN_TRANSACTION_H | |
24 | |
25 typedef struct _MsnTransaction MsnTransaction; | |
26 | |
27 #include "command.h" | |
28 #include "cmdproc.h" | |
29 | |
30 /** | |
31 * A transaction. A command that will initiate the transaction. | |
32 */ | |
33 struct _MsnTransaction | |
34 { | |
35 unsigned int trId; | |
36 | |
37 char *command; | |
38 char *params; | |
39 | |
40 GHashTable *callbacks; | |
41 void *data; | |
42 | |
43 char *payload; | |
44 size_t payload_len; | |
45 | |
46 GQueue *queue; | |
47 MsnCommand *pendent_cmd; | |
48 }; | |
49 | |
50 MsnTransaction *msn_transaction_new(const char *command, | |
51 const char *format, ...); | |
52 | |
53 void msn_transaction_destroy(MsnTransaction *trans); | |
54 | |
55 char *msn_transaction_to_string(MsnTransaction *trans); | |
56 void msn_transaction_set_payload(MsnTransaction *trans, | |
57 const char *payload, int payload_len); | |
58 | |
59 #endif /* _MSN_TRANSACTION_H */ |