aboutsummaryrefslogtreecommitdiffstats
path: root/src/Queue.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-06 14:58:54 +0100
committerMax Kellermann <max@duempel.org>2013-01-06 18:59:39 +0100
commit70652abf9750b62d2b4e5857d894494ae6058cf1 (patch)
treeba38fec9699eb2094cb2dda7a6f3f9dbb427a709 /src/Queue.hxx
parente202b407ec18570ad54a04c64341f654b447fb31 (diff)
downloadmpd-70652abf9750b62d2b4e5857d894494ae6058cf1.tar.gz
mpd-70652abf9750b62d2b4e5857d894494ae6058cf1.tar.xz
mpd-70652abf9750b62d2b4e5857d894494ae6058cf1.zip
Queue: add constructor and destructor
Diffstat (limited to 'src/Queue.hxx')
-rw-r--r--src/Queue.hxx24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/Queue.hxx b/src/Queue.hxx
index 4c6d5ea11..6ab0a833f 100644
--- a/src/Queue.hxx
+++ b/src/Queue.hxx
@@ -99,6 +99,17 @@ struct queue {
/** random number generator for shuffle and random mode */
GRand *rand;
+
+ queue(unsigned max_length);
+
+ /**
+ * Deinitializes a queue object. It does not free the queue
+ * pointer itself.
+ */
+ ~queue();
+
+ queue(const queue &other) = delete;
+ queue &operator=(const queue &other) = delete;
};
static inline unsigned
@@ -233,19 +244,6 @@ queue_song_newer(const struct queue *queue, unsigned position,
}
/**
- * Initialize a queue object.
- */
-void
-queue_init(struct queue *queue, unsigned max_length);
-
-/**
- * Deinitializes a queue object. It does not free the queue pointer
- * itself.
- */
-void
-queue_finish(struct queue *queue);
-
-/**
* Returns the order number following the specified one. This takes
* end of queue and "repeat" mode into account.
*