IPB

Welcome Guest ( Log In | Register )

> foobar2000 Development Forum Rules

This forum is for developer discussions only. If you have a problem / bug report / idea / feature request that isn't related to foobar2000 SDK, post it in an appropiate forum instead - tech support questions go to support forum, everything else goes to general forum.
All non-developer posts on this forum will be removed. Continued abuse of this forum will result in admin actions (warnings, account suspension).

Components using other components?, Can a component expose an API for other components to use?
hymerman
post Oct 12 2012, 09:36
Post #1





Group: Members
Posts: 85
Joined: 1-June 05
Member No.: 22429



I'm writing a component that does quite a lot of stuff (specifically, I'm writing my own version of foo_softplaylists, which queries last.fm and matches the results against the local library as best it can). I think part of that stuff will be useful in and of itself (the part that finds the best version of a track), and may also be useful to other components (such as an XSPF playlist loader which would need to fuzzily match tracks), so I would like to separate it out (the fuzzy matching stuff) into its own component, and have the others use it. It's not purely algorithmic (there are some settings that control how the user would like the matching to be done) so it should definitely be a component rather than just a header file that each component can include.

My question is: how do I go about doing this? I know components like ColumnsUI exist that other components can 'plug in' to, which must be exposing some API, but I've no idea how the foobar API wants me to do that. I also have no idea what the policy on component dependencies is, and if there's any facility in foobar to ensure that users have dependent components. Any pointers would be greatly appreciated.
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th November 2014 - 19:39