#include "StarSongbookLuaBindings.hpp" #include "StarLuaConverters.hpp" namespace Star { LuaCallbacks LuaBindings::makeSongbookCallbacks(Songbook* songbook) { LuaCallbacks callbacks; callbacks.registerCallbackWithSignature("play", bind(mem_fn(&Songbook::play), songbook, _1, _2)); callbacks.registerCallbackWithSignature("keepAlive", bind(mem_fn(&Songbook::keepAlive), songbook, _1, _2)); callbacks.registerCallbackWithSignature("stop", bind(mem_fn(&Songbook::stop), songbook)); callbacks.registerCallbackWithSignature("active", bind(mem_fn(&Songbook::active), songbook)); callbacks.registerCallbackWithSignature>("band", bind(mem_fn(&Songbook::timeSource), songbook)); callbacks.registerCallbackWithSignature>("instrument", bind(mem_fn(&Songbook::instrument), songbook)); callbacks.registerCallbackWithSignature("instrumentPlaying", bind(mem_fn(&Songbook::instrumentPlaying), songbook)); callbacks.registerCallbackWithSignature("song", bind(mem_fn(&Songbook::song), songbook)); return callbacks; } }