I want to make a plugin that "handles" all filetypes. To be more accurate, it would to do a certain operation and then pass the input service function calls forward to the service that actually handles them. Kind of an intermediate layer between foobar and normal input services, mainly for filtering the metadata that gets written to or reloaded from files. (I really got tired of the way foobar's database works.) And it only needs to be done for local files (file://, unpack://).
As has been discussed here, it would perhaps require changing the component loading order, so that my plugin is able to register filetypes first. So how can I change this? Is it the same as the order of the dll files in the directory table? Or alphabetical order? And does loading order guarantee that input services are called in this same order?
Another option would be to use is_our_content_type(), which gets called for all services before any calls to test_filename(). But does foobar always call it, even when the content type is not defined and other situations like that?
Well, obviously I can test these things, but I still couldn't be 100% sure about foobar's internal behavior, so I thould I'd ask if anyone knows. Anyway, thanks.
