Re: libnjb API info
Linus Walleij <[email protected]> Tue, 27 Sep 2005 10:52:20 +0200 (CEST)
| Newsgroups | gmane.comp.multimedia.libnjb.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 26 Sep 2005, SukkoPera wrote: > i. e.: I want to know if after NJB_Close () a jukebox can be reopened without > doing NJB_Discover () again. Should work fine. (Report if it doesn't!) > And then: if I NJB_Discover () again, jukeboxes that I had already opened are > still usable? Yes, but do not open a jukebox that is already open then... It could be hard to avoid such a thing. If there are two entirely different devices you can of course determine that it is not the same device twice, but if there are say two NJB3:s it's problematic. > And finally: what's the purpose of having NJB_open () + NJB_Capture () and > NJB_Release () + NJB_Close ()? It is mainly for historical reasons. The NJB1 implementation was closer to the protocol and did not abstract away the different operations involved in opening a Jukebox. Also, it is (protocol-wise) possible to query the device for basic stuff like the serial number without "capturing" it (display goes "host controlled" some way) but we haven't implemented that. > Is there something that is supposed to be done > inbetween these calls? Shouldn't the API hide the need to capture/release > jukeboxes and provide a single function for opening/closing them? Yeah could be good. But then we break the API backwards compatibility and get libnjb.so.6.0.0, so it must be ReallyGood(TM) not just LooksBetter(TM)... I don't quite know if it is that. Linus ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php