blob: ebe2bb8d5b3bd3981bd91b7be494b62321d5cfdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef H_SENTRY_CARD_QUEUE
#define H_SENTRY_CARD_QUEUE
struct card_queue_item {
const char *str;
struct card_queue_item *next;
};
struct card_queue {
struct card_queue_item *first;
struct card_queue_item *last;
};
void init_queue(struct card_queue *cq);
void push_queue(struct card_queue *cq, const char *str);
struct card_queue_item* get_next_card_from_queue(struct card_queue *cq,
struct card_queue_item *prev);
int find_out_card_quantity_in_cq(const struct card_queue *cq);
int is_empty_queue(struct card_queue *cq);
const char* pop_card_queue(struct card_queue *cq);
void clear_queue(struct card_queue *cq);
#endif
|