On 2014/08/28 21:49, Craig Tolley <[email protected]> wrote:
> Ok, not had any responses as yet

I did reply to you.  However, you only re-posted the same text until
now.

> 1.    I am creating an Input Plugin, how do I tell MPD that ohu:// and
> ohm:// are valid URIs? Somewhere I need to create the link between the
> SongCastInputPlugin class that I will create and the MPD playlist and I
> haven't found this as yet.

ls.cxx

> 2.    There is already a Socket Utility which looks like it handles socket
> connections. Am I free to utilise this instead of building connections into
> my SongCast class?

Which Socket Utility do you mean?

In any case, reusing existing code is better than reinventing the
wheel.

> 3.    Are there any methods that I must implement in the plugin or order to
> be functional within mpd?

Only open() must be implemented.  init() and finish() are optional and
may be nullptr.

> 4.    Is there a built in logging function that I can use for dev purposes,
> or do I just output to a file of my choosing?

Yes.  The function's called Log() and you can find it in Log.hxx.  Was
that a serious question?
_______________________________________________
mpd-devel mailing list
[email protected]
http://mailman.blarg.de/listinfo/mpd-devel

Reply via email to