ocarina/libsaria/callbacks.py
Bryan Schumaker d8f47e8d4d libsaria: Remove new_source() functions
I have new functions for creating the library, so this (and associated
callbacks) are no longer needed.
2011-05-23 10:07:19 -04:00

47 lines
677 B
Python

# Bryan Schumaker (4 / 30 / 2011)
import libsaria
def null_cb(*args):
pass
on_play = null_cb
def play():
on_play()
on_pause = null_cb
def pause():
on_pause()
on_load = null_cb
def load_file(file):
on_load(file)
on_like = null_cb
def like_song(like):
on_like(like)
on_set_volume = null_cb
def set_volume(prcnt):
on_set_volume(prcnt)
on_get_art = null_cb
def get_art(file, id):
on_get_art(file, id)
on_load_playlist = null_cb
def load_playlist():
on_load_playlist()
on_library_updated = null_cb
def library_updated():
on_library_updated()
on_queue_changed = null_cb
def queue_changed():
on_queue_changed()
on_filter = null_cb
def refilter():
on_refilter()