X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fdispatcher-scheme.cc;h=bd928173d4329c921f3a35906fe5df5875d004ac;hb=52148831ff218cb35bb601b0e9b2513a8ef2a1a3;hp=e467064bf417080c6d364b55cf01a22982eaf673;hpb=d2300573cae3c1920400d040faddd33f17b43c2d;p=lilypond.git diff --git a/lily/dispatcher-scheme.cc b/lily/dispatcher-scheme.cc index e467064bf4..bd928173d4 100644 --- a/lily/dispatcher-scheme.cc +++ b/lily/dispatcher-scheme.cc @@ -1,23 +1,34 @@ /* - dispatcher.cc -- implement Scheme bindings for Dispatcher + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 2006--2011 Erik Sandberg - (c) 2006--2007 Erik Sandberg + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "dispatcher.hh" LY_DEFINE (ly_make_dispatcher, "ly:make-dispatcher", 0, 0, 0, (), - "Returns a newly created dispatcher.") + "Return a newly created dispatcher.") { return (new Dispatcher ())->unprotect (); } LY_DEFINE (ly_connect_dispatchers, "ly:connect-dispatchers", 2, 0, 0, (SCM to, SCM from), - "Makes the dispatcher @var{to} listen to events from @var{from}." ) + "Make the dispatcher @var{to} listen to events from @var{from}.") { Dispatcher *t = unsmob_dispatcher (to); Dispatcher *f = unsmob_dispatcher (from); @@ -32,8 +43,9 @@ LY_DEFINE (ly_connect_dispatchers, "ly:connect-dispatchers", LY_DEFINE (ly_add_listener, "ly:add-listener", 2, 0, 1, (SCM list, SCM disp, SCM cl), - "Adds the listener @var{list} to the dispatcher @var{disp}.\n" - " Whenever @var{disp} hears an event of class @var{cl}, it will be forwarded to @var{list}.\n" ) + "Add the listener @var{list} to the dispatcher @var{disp}." + " Whenever @var{disp} hears an event of class @var{cl}," + " it is forwarded to @var{list}.") { Listener *l = unsmob_listener (list); Dispatcher *d = unsmob_dispatcher (disp); @@ -53,8 +65,7 @@ LY_DEFINE (ly_add_listener, "ly:add-listener", LY_DEFINE (ly_broadcast, "ly:broadcast", 2, 0, 0, (SCM disp, SCM ev), - "Sends the stream event @var{ev} to the dispatcher\n" - "@var{disp}.") + "Send the stream event @var{ev} to the dispatcher @var{disp}.") { Dispatcher *d = unsmob_dispatcher (disp); Stream_event *e = unsmob_stream_event (ev);