]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/queue.h
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / bacula / src / lib / queue.h
1 /*
2    Bacula(R) - The Network Backup Solution
3
4    Copyright (C) 2000-2016 Kern Sibbald
5
6    The original author of Bacula is Kern Sibbald, with contributions
7    from many others, a complete list can be found in the file AUTHORS.
8
9    You may use this file and others of this release according to the
10    license defined in the LICENSE file, which includes the Affero General
11    Public License, v3.0 ("AGPLv3") and some additional permissions and
12    terms pursuant to its AGPLv3 Section 7.
13
14    This notice must be preserved when any source code is 
15    conveyed and/or propagated.
16
17    Bacula(R) is a registered trademark of Kern Sibbald.
18 */
19 /*
20  *  Written by John Walker MM
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);