ocarina/lib/callback.cpp
Anna Schumaker 211d240484 deck: Rework the deck code
I update the unit test and redo much of the code to be cleaner and make
more sense.  One big improvement is that the recently played queue will
now be managed by the deck.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2014-05-26 22:20:55 -04:00

33 lines
601 B
C++

/*
* Copyright 2014 (c) Anna Schumaker.
*/
#include <callback.h>
static void no_op() {}
static void no_op(bool, unsigned int) {}
static void no_op(Queue *, unsigned int) {}
static void no_op(Queue *) {}
static void no_op(Track *) {}
static struct Callbacks callbacks = {
.on_play = no_op,
.on_pause = no_op,
.on_track_loaded = no_op,
.on_pause_count_changed = no_op,
.on_pq_removed = no_op,
.on_queue_track_add = no_op,
.on_queue_track_del = no_op,
.on_queue_track_changed = no_op,
.on_queue_changed = no_op,
};
struct Callbacks *get_callbacks()
{
return &callbacks;
}