]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/queue.h
Backport from BEE
[bacula/bacula] / bacula / src / lib / queue.h
1 /*
2  *  Written by John Walker MM
3  *
4  *   Version $Id$
5  */
6 /*
7    Bacula® - The Network Backup Solution
8
9    Copyright (C) 2000-2014 Free Software Foundation Europe e.V.
10
11    The main author of Bacula is Kern Sibbald, with contributions from many
12    others, a complete list can be found in the file AUTHORS.
13
14    You may use this file and others of this release according to the
15    license defined in the LICENSE file, which includes the Affero General
16    Public License, v3.0 ("AGPLv3") and some additional permissions and
17    terms pursuant to its AGPLv3 Section 7.
18
19    Bacula® is a registered trademark of Kern Sibbald.
20 */
21
22
23 /*  General purpose queue  */
24
25 struct b_queue {
26         struct b_queue *qnext,     /* Next item in queue */
27                      *qprev;       /* Previous item in queue */
28 };
29
30 typedef struct b_queue BQUEUE;
31
32 /*  Queue functions  */
33
34 void    qinsert(BQUEUE *qhead, BQUEUE *object);
35 BQUEUE *qnext(BQUEUE *qhead, BQUEUE *qitem);
36 BQUEUE *qdchain(BQUEUE *qitem);
37 BQUEUE *qremove(BQUEUE *qhead);