globus_common
15.26
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
globus_fifo.h
Go to the documentation of this file.
1
/*
2
* Copyright 1999-2006 University of Chicago
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef GLOBUS_FIFO_H
18
#define GLOBUS_FIFO_H
19
33
#include "
globus_list.h
"
34
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif
38
43
struct
globus_fifo_s;
48
typedef
struct
globus_fifo_s *
globus_fifo_t
;
49
57
extern
int
58
globus_fifo_init
(
59
globus_fifo_t * fifo);
60
69
extern
void
70
globus_fifo_destroy
(
71
globus_fifo_t * fifo);
72
82
void
83
globus_fifo_destroy_all
(
84
globus_fifo_t * fifo,
85
void
(*datum_free)(
void
*));
86
92
extern
int
93
globus_fifo_empty
(
94
const
globus_fifo_t * fifo);
95
101
extern
int
102
globus_fifo_size
(
103
const
globus_fifo_t * fifo);
104
109
extern
int
110
globus_fifo_enqueue
(
111
globus_fifo_t * fifo,
112
void
* datum);
113
119
extern
globus_fifo_t *
120
globus_fifo_copy
(
121
const
globus_fifo_t * fifo);
122
127
extern
void
*
128
globus_fifo_peek
(
129
globus_fifo_t * fifo);
130
135
extern
void
*
136
globus_fifo_tail_peek
(
137
globus_fifo_t * fifo);
138
143
extern
void
*
144
globus_fifo_remove
(
145
globus_fifo_t * headp,
146
void
* datum);
147
152
extern
void
*
153
globus_fifo_dequeue
(
154
globus_fifo_t * fifo);
155
160
extern
int
161
globus_fifo_move
(
162
globus_fifo_t * fifo_dest,
163
globus_fifo_t * fifo_src);
164
169
extern
globus_list_t
*
170
globus_fifo_convert_to_list
(
171
globus_fifo_t * fifo );
172
173
#ifdef __cplusplus
174
}
175
#endif
176
177
#endif
/* GLOBUS_FIFO_H */
Generated on Mon Oct 5 2015 13:56:54 for globus_common by
1.8.1.2