ocarina/include/callback.h
Anna Schumaker 2ecb37f6dc Everything for a custom Gtk::TreeModel
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>
2014-04-06 19:56:58 -04:00

28 lines
619 B
C

/*
* Copyright 2014 (c) Anna Schumaker.
*/
#ifndef OCARINA_CALLBACK_H
#define OCARINA_CALLBACK_H
#include <library.h>
#include <playqueue.h>
struct Callbacks {
/* Library callbacks */
void (*on_library_add)(unsigned int, library :: Library *);
void (*on_library_update)(unsigned int, library :: Library *);
void (*on_library_track_add)(unsigned int);
void (*on_library_track_del)(unsigned int);
/* Playqueue callbacks */
void (*on_queue_track_add)(Playqueue *, unsigned int);
void (*on_queue_track_del)(Playqueue *, unsigned int);
};
struct Callbacks *get_callbacks();
#endif /* OCARINA_CALLBACK_H */