]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/queue.h
o fix : restore a crypted stream on a fd witch doen't define keys cause
[bacula/bacula] / bacula / src / lib / queue.h
1 /*
2  *   Version $Id$
3  */
4 /*
5    Copyright (C) 2000-2006 Kern Sibbald
6
7    This program is free software; you can redistribute it and/or
8    modify it under the terms of the GNU General Public License
9    version 2 as amended with additional clauses defined in the
10    file LICENSE in the main source directory.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
15    the file LICENSE for additional details.
16
17  */
18
19
20 /*  General purpose queue  */
21
22 struct b_queue {
23         struct b_queue *qnext,     /* Next item in queue */
24                      *qprev;       /* Previous item in queue */
25 };
26
27 typedef struct b_queue BQUEUE;
28
29 /*  Queue functions  */
30
31 void    qinsert(BQUEUE *qhead, BQUEUE *object);
32 BQUEUE *qnext(BQUEUE *qhead, BQUEUE *qitem);
33 BQUEUE *qdchain(BQUEUE *qitem);
34 BQUEUE *qremove(BQUEUE *qhead);