>> On a related note, there doesn't seem to be a companion destroy
>> function for
>> the plugin_setup() function, is that correct?  Or are you meant to
>> register
>> something with atexit() if you need to clean up?
> 
> You are not meant to need any cleanup :)  plugin_setup is just meant to
> say "these are the methods you should use to call me" and "these are the
> formats I support as input".
> 
> What kind of initialization do you need to do?

Actually nothing at the moment, I just went to document some of this on the
XMMS2 wiki and realised there wasn't any way of cleaning up.  But
hypothetically, say you wanted to initialise an external library or something,
you could do that in plugin_setup() but there would be no way to clean up
afterwards.  (Assuming of course you don't want to keep loading and unloading
it every time a file is played.)

But I guess if it hasn't come up yet then it's probably not required :-)

Thanks,
Adam.

--
_______________________________________________
Xmms2-devel mailing list
Xmms2-devel@lists.xmms.se
http://lists.xmms.se/cgi-bin/mailman/listinfo/xmms2-devel

Reply via email to