diff options
Diffstat (limited to 'card_queue.h')
-rw-r--r-- | card_queue.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/card_queue.h b/card_queue.h new file mode 100644 index 0000000..475a93e --- /dev/null +++ b/card_queue.h @@ -0,0 +1,20 @@ +#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); + +#endif |