2013-12-22 22:21:19 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2013 (c) Anna Schumaker.
|
|
|
|
*/
|
|
|
|
#ifndef OCARINA_DECK_H
|
|
|
|
#define OCARINA_DECK_H
|
|
|
|
|
2014-04-01 20:28:19 -04:00
|
|
|
#include <queue.h>
|
2013-12-22 22:21:19 -05:00
|
|
|
|
|
|
|
namespace deck
|
|
|
|
{
|
|
|
|
|
2014-01-16 22:25:04 -05:00
|
|
|
void init();
|
2014-01-24 21:43:18 -05:00
|
|
|
void read();
|
|
|
|
void write();
|
2013-12-23 10:37:22 -05:00
|
|
|
|
2014-04-01 20:28:19 -04:00
|
|
|
Queue *create(bool);
|
2013-12-22 22:21:19 -05:00
|
|
|
void remove(unsigned int);
|
2014-04-01 20:28:19 -04:00
|
|
|
Queue *get(unsigned int);
|
2014-01-31 22:45:26 -05:00
|
|
|
unsigned int size();
|
2013-12-22 22:21:19 -05:00
|
|
|
void move(unsigned int, unsigned int);
|
2014-04-01 20:28:19 -04:00
|
|
|
void move(Queue *, unsigned int);
|
2013-12-23 10:22:37 -05:00
|
|
|
unsigned int next();
|
2014-04-01 20:28:19 -04:00
|
|
|
Queue *get_library_pq();
|
2013-12-22 22:21:19 -05:00
|
|
|
|
2014-01-04 11:21:05 -05:00
|
|
|
#ifdef CONFIG_TEST
|
2013-12-23 10:37:22 -05:00
|
|
|
void reset();
|
2013-12-22 22:21:19 -05:00
|
|
|
void print_info();
|
2014-01-04 11:21:05 -05:00
|
|
|
#endif /* CONFIG_TEST */
|
2013-12-22 22:21:19 -05:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* OCARINA_DECK_H */
|