John,

All the functionality to do this (see my previous post, "runtime/startup
loading of typelibs") seems to be present in both
xptiInterfaceInfoManager::LoadFile and/or
xptiInterfaceInfoManger::AddOnlyNewFileFromFileList. Exporting either of those
(into nsIInterfaceeInfoManager) would make it possible to do what i need, it
seems.

That would require moving some information in xptiprivate.h to publicly
available headers (since both of those functions take internal
objects). Alternatively, a new function nsIIIM::RegisterTypelib (or
whatever) could take only an nsIFile and turn around and call one of those two
in the implementation.

I have to admit I don't understand the semantic difference between LoadFile and
AddOnlyNewFileFromList; LoadFile seems like a special case of the latter, but
AddOnlyNewFileFromList doesn't call LoadFile (xptiInterfaceInfo *does* and
appears to be the only user of that function, but i haven't looked at that code
closely). I have to admit i find all of xptiIIM a bit bizarre (just seems like
it's implementing the same thing over a couple of times; this probably means i
don't understand the differences between the implementations).

Anyhow. I was kinda hoping this would make it into 0.7. Obviously that's not
happening :) but i need to get this moving before i can proceed with any of my
own stuff.




cheers,

ari


Reply via email to