msg_queue.h
资源名称:micq.tgz [点击查看]
上传用户:ai20ln
上传日期:2007-01-05
资源大小:79k
文件大小:1k
源码类别:
ICQ/即时通讯
开发平台:
Unix_Linux
- #ifndef MSG_QUEUE_H
- #define MSG_QUEUE_H
- #include "datatype.h"
- struct msg
- {
- int seq;
- int attempts;
- int exp_time;
- BYTE *body;
- int len;
- };
- struct msg_queue_entry
- {
- struct msg *msg;
- struct msg_queue_entry *next;
- };
- struct msg_queue
- {
- int entries;
- struct msg_queue_entry *head;
- struct msg_queue_entry *tail;
- };
- void msg_queue_init( void );
- struct msg *msg_queue_peek( void );
- struct msg *msg_queue_pop( void );
- void msg_queue_push( struct msg *new_msg );
- void Check_Queue( WORD seq );
- void Dump_Queue( void );
- #endif