2ecb37f6dc
I implemented an entire Gtk::TreeModel in this commit, plus some minor supporting code in the library to look up playlist entries by index. Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
27 lines
500 B
C++
27 lines
500 B
C++
/*
|
|
* Copyright 2014 (c) Anna Schumaker.
|
|
*/
|
|
#include <callback.h>
|
|
|
|
|
|
static void no_op(unsigned int) {}
|
|
static void no_op(unsigned int id, library :: Library *path) {}
|
|
static void no_op(Playqueue *, unsigned int) {}
|
|
|
|
|
|
static struct Callbacks callbacks = {
|
|
.on_library_add = no_op,
|
|
.on_library_update = no_op,
|
|
.on_library_track_add = no_op,
|
|
.on_library_track_del = no_op,
|
|
|
|
.on_queue_track_add = no_op,
|
|
.on_queue_track_del = no_op,
|
|
};
|
|
|
|
|
|
struct Callbacks *get_callbacks()
|
|
{
|
|
return &callbacks;
|
|
}
|