A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the possibility to remove an item in the middle of the list.
[simgrid.git]
/
include
/
xbt
/
fifo.h
diff --git
a/include/xbt/fifo.h
b/include/xbt/fifo.h
index
b59e0b1
..
33fa27a
100644
(file)
--- a/
include/xbt/fifo.h
+++ b/
include/xbt/fifo.h
@@
-16,11
+16,16
@@
typedef struct xbt_fifo *xbt_fifo_t;
xbt_fifo_t xbt_fifo_new(void);
void xbt_fifo_free(xbt_fifo_t);
xbt_fifo_t xbt_fifo_new(void);
void xbt_fifo_free(xbt_fifo_t);
-
void
xbt_fifo_push(xbt_fifo_t, void *);
+
xbt_fifo_item_t
xbt_fifo_push(xbt_fifo_t, void *);
void *xbt_fifo_pop(xbt_fifo_t);
void *xbt_fifo_pop(xbt_fifo_t);
-
void
xbt_fifo_unshift(xbt_fifo_t, void *);
+
xbt_fifo_item_t
xbt_fifo_unshift(xbt_fifo_t, void *);
void *xbt_fifo_shift(xbt_fifo_t);
void *xbt_fifo_shift(xbt_fifo_t);
+void xbt_fifo_push_item(xbt_fifo_t, xbt_fifo_item_t);
+xbt_fifo_item_t xbt_fifo_pop_item(xbt_fifo_t);
+void xbt_fifo_unshift_item(xbt_fifo_t, xbt_fifo_item_t);
+xbt_fifo_item_t xbt_fifo_shift_item(xbt_fifo_t);
+
void xbt_fifo_remove(xbt_fifo_t, void *);
void xbt_fifo_remove_item(xbt_fifo_t, xbt_fifo_item_t);
void xbt_fifo_remove(xbt_fifo_t, void *);
void xbt_fifo_remove_item(xbt_fifo_t, xbt_fifo_item_t);