| |
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| |
2 #ifndef _QUEUE_H_ |
| |
3 #define _QUEUE_H_ |
| |
4 |
| |
5 #ifdef HAVE_CONFIG_H |
| |
6 #include <config.h> |
| |
7 #endif |
| |
8 |
| |
9 #include "icq.h" |
| |
10 #include "icqpacket.h" |
| |
11 |
| |
12 typedef struct udp_item |
| |
13 { |
| |
14 unsigned char attempts; |
| |
15 unsigned long expire; |
| |
16 icq_Packet *pack; |
| |
17 } icq_UDPQueueItem; |
| |
18 |
| |
19 void icq_UDPQueueNew(ICQLINK*); |
| |
20 void icq_UDPQueueFree(ICQLINK*); |
| |
21 void icq_UDPQueuePut(ICQLINK*, icq_Packet*, int); |
| |
22 icq_Packet *icq_UDPQueueGet(ICQLINK*); |
| |
23 icq_Packet *icq_UDPQueuePeek(ICQLINK*); |
| |
24 void icq_UDPQueueDelete(ICQLINK*); |
| |
25 void icq_UDPQueueFree(ICQLINK*); |
| |
26 void icq_UDPQueueDelSeq(ICQLINK*, WORD); |
| |
27 long icq_UDPQueueInterval(ICQLINK *); |
| |
28 |
| |
29 #endif |