comparison src/protocols/msn/command.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 command.h MSN command 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_COMMAND_H
23 #define _MSN_COMMAND_H
24
25 typedef struct _MsnCommand MsnCommand;
26
27 #include "cmdproc.h"
28 #include "transaction.h"
29
30 /* typedef void (*MsnPayloadCb)(MsnCmdProc *cmdproc, MsnCommand *cmd, char
31 * *payload, size_t len); */
32
33 /**
34 * A received command.
35 */
36 struct _MsnCommand
37 {
38 unsigned int trId;
39
40 char *command;
41 char **params;
42 int param_count;
43
44 int ref_count;
45
46 MsnTransaction *trans;
47 /* MsnPayloadCb payload_cb; */
48 };
49
50 MsnCommand *msn_command_from_string(const char *string);
51 void msn_command_destroy(MsnCommand *cmd);
52 MsnCommand *msn_command_ref(MsnCommand *cmd);
53 MsnCommand *msn_command_unref(MsnCommand *cmd);
54
55 #endif /* _MSN_COMMAND_H */