On Nov 23, 2013, at 17:09 56, Alessio Elmi <[email protected]> wrote:
> I would like to make custom made RLM module, but I'm not a C/C++ expert. > My idea was starting from a standard module source, edit a bit and compiling. > The idea is quite simple: every new song do so some bash activitiy.. > > I saw there is a nice RML box where I could write "RN my_script.sh!" but how > take parameters of titles and authors? You’re talking about two different things here: 1) RLM - These are not stand-alone scripts, but plug-ins that actually run as part of RDAirPlay. Every time a log advances, a message gets sent to all of the plug-ins that describes the current state of that log. The format of the messages (as well as a number of other things) are specified in the ‘rlm/rlm.h’ header file. To get started, take a look at the ‘rlm_test’ plug-in (in ‘rlm/rlm_test.c’). You’ll find instructions in that file on how to build and run it. 2) RN - This is an RML that runs an arbitrary system command. It takes whatever arguments you give it in the RML statement, and otherwise doesn’t communicate with RD at all. Cheers! |-------------------------------------------------------------------------| | Frederick F. Gleason, Jr. | Chief Developer | | | Paravel Systems | |-------------------------------------------------------------------------| | A room without books is like a body without a soul. | | -- Cicero | |-------------------------------------------------------------------------| _______________________________________________ Rivendell-dev mailing list [email protected] http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
