00001 /* 00002 || This file is part of Pike. For copyright information see COPYRIGHT. 00003 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING 00004 || for more information. 00005 || $Id: queue.h,v 1.6 2002/10/11 01:39:37 nilsson Exp $ 00006 */ 00007 00008 #ifndef QUEUE_H 00009 #define QUEUE_H 00010 00011 struct pike_queue 00012 { 00013 struct queue_block *first, *last; 00014 }; 00015 00016 typedef void (*queue_call)(void *data); 00017 00018 /* Prototypes begin here */ 00019 struct queue_entry; 00020 struct queue_block; 00021 void run_queue(struct pike_queue *q); 00022 void discard_queue(struct pike_queue *q); 00023 void enqueue(struct pike_queue *q, queue_call call, void *data); 00024 void run_lifo_queue(struct pike_queue *q); 00025 void enqueue_lifo(struct pike_queue *q, queue_call call, void *data); 00026 void *dequeue_lifo(struct pike_queue *q, queue_call call); 00027 /* Prototypes end here */ 00028 00029 #endif /* QUEUE_H */
1.3.9.1