]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/queue.h
Add support for new POSIX getaddrinfo interface.
[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-2006 Free Software Foundation Europe e.V.
10
11    The main author of Bacula is Kern Sibbald, with contributions from
12    many others, a complete list can be found in the file AUTHORS.
13    This program is Free Software; you can redistribute it and/or
14    modify it under the terms of version three of the GNU Affero General Public
15    License as published by the Free Software Foundation and included
16    in the file LICENSE.
17
18    This program is distributed in the hope that it will be useful, but
19    WITHOUT ANY WARRANTY; without even the implied warranty of
20    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21    General Public License for more details.
22
23    You should have received a copy of the GNU Affero General Public License
24    along with this program; if not, write to the Free Software
25    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
26    02110-1301, USA.
27
28    Bacula® is a registered trademark of Kern Sibbald.
29    The licensor of Bacula is the Free Software Foundation Europe
30    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
31    Switzerland, email:ftf@fsfeurope.org.
32 */
33
34
35 /*  General purpose queue  */
36
37 struct b_queue {
38         struct b_queue *qnext,     /* Next item in queue */
39                      *qprev;       /* Previous item in queue */
40 };
41
42 typedef struct b_queue BQUEUE;
43
44 /*  Queue functions  */
45
46 void    qinsert(BQUEUE *qhead, BQUEUE *object);
47 BQUEUE *qnext(BQUEUE *qhead, BQUEUE *qitem);
48 BQUEUE *qdchain(BQUEUE *qitem);
49 BQUEUE *qremove(BQUEUE *qhead);