picq.h
Go to the documentation of this file.
1/*
2 * Copyright 2006-2024 Carnegie Mellon University
3 * See license information in LICENSE.txt.
4 */
5/*
6 * picq.c
7 * General pickable queue implementation
8 *
9 * ------------------------------------------------------------------------
10 * Authors: Brian Trammell
11 * ------------------------------------------------------------------------
12 * @DISTRIBUTION_STATEMENT_BEGIN@
13 * YAF 2.16
14 *
15 * Copyright 2024 Carnegie Mellon University.
16 *
17 * NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING
18 * INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON
19 * UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
20 * AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF FITNESS FOR
21 * PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS OBTAINED FROM USE OF
22 * THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT MAKE ANY WARRANTY OF
23 * ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT
24 * INFRINGEMENT.
25 *
26 * Licensed under a GNU GPL 2.0-style license, please see LICENSE.txt or
27 * contact permission@sei.cmu.edu for full terms.
28 *
29 * [DISTRIBUTION STATEMENT A] This material has been approved for public
30 * release and unlimited distribution. Please see Copyright notice for
31 * non-US Government use and distribution.
32 *
33 * This Software includes and/or makes use of Third-Party Software each
34 * subject to its own license.
35 *
36 * DM24-1063
37 * @DISTRIBUTION_STATEMENT_END@
38 * ------------------------------------------------------------------------
39 */
40
58/* idem hack */
59#ifndef _YAF_PICQ_H_
60#define _YAF_PICQ_H_
61#include <yaf/autoinc.h>
62
63
73void
75 void *vq,
76 void *vn);
77
87void
89 void *vq,
90 void *vn);
91
101void
103 void *vq,
104 void *vn);
105
115void *
117 void *vq);
118
128void *
130 void *vq);
131
132#endif /* ifndef _YAF_PICQ_H_ */
void * piqDeQ(void *vq)
Dequeue a node from the tail of a given pickable queue.
void * piqShift(void *vq)
Dequeue a node from the head of a given pickable queue.
void piqUnshift(void *vq, void *vn)
Enqueue a node at the tail of a given pickable queue.
void piqPick(void *vq, void *vn)
Pick a node from a given pickable queue.
void piqEnQ(void *vq, void *vn)
Enqueue a node at the head of a given pickable queue.