comparison libgaim/protocols/qq/sendqueue.h @ 14192:60b1bc8dbf37

[gaim-migrate @ 16863] Renamed 'core' to 'libgaim' committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Sat, 19 Aug 2006 01:50:10 +0000
parents
children c039c920e11c
comparison
equal deleted inserted replaced
14191:009db0b357b5 14192:60b1bc8dbf37
1 /**
2 * The QQ2003C protocol plugin
3 *
4 * for gaim
5 *
6 * Copyright (C) 2004 Puzzlebird
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
23 #ifndef _QQ_SEND_QUEUE_H_
24 #define _QQ_SEND_QUEUE_H_
25
26 #include <glib.h>
27 #include "qq.h"
28
29 #define QQ_SENDQUEUE_TIMEOUT 5000 /* in 1/1000 sec */
30
31 typedef struct _qq_sendpacket qq_sendpacket;
32
33 struct _qq_sendpacket {
34 gint fd;
35 gint len;
36 guint8 *buf;
37 guint16 cmd;
38 guint16 send_seq;
39 gint resend_times;
40 time_t sendtime;
41 };
42
43 void qq_sendqueue_free(qq_data *qd);
44
45 void qq_sendqueue_remove(qq_data *qd, guint16 send_seq);
46 gboolean qq_sendqueue_timeout_callback(gpointer data);
47
48 #endif