home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / sna / aremote / queue.h < prev    next >
C/C++ Source or Header  |  1997-04-09  |  416b  |  21 lines

  1. #ifndef __QUEUE_H__
  2. #define __QUEUE_H__
  3. typedef struct qnode_st {
  4.     struct qnode_st    *next;
  5.     struct qnode_st    *prev;
  6.     void         *ptr;
  7.     int        qnodeid;        /* do not change    */
  8. } qnode;
  9.  
  10. typedef struct queue_st {
  11.     qnode        *head;
  12.     qnode        *tail;
  13. } queue;
  14.  
  15. qnode *addtoq(queue *q, void *p);
  16. void *removeheadfromq(queue *q);
  17. void *removeqnodefromq(queue *q, qnode *t);
  18. queue *newq(void);
  19. #endif /* __QUEUE_H__ */
  20.  
  21.