jmv wrote:

NS_InitEmbedding is indeed an obsolete API; it has been replaced by the much
more flexible and dynamically linked XRE_InitEmbedding API. That said, it is
still available in a static library for old code which hasn't upgraded yet.

Thanks for your answer but I cannot find a single mention of
XRE_InitEmbedding in the Firefox 1.5 sources and NS_InitEmbedding is
declaring with NS_HIDDEN attribute. As far as I understand, this means
that I cannot link to it. What should I do in this situation?

As I may have forgotten to mention, XRE_InitEmbedding is only available in XULRunner. However, it should be declared in the Firefox source tarball in mozilla/toolkit/xre/nsXULAppAPI.h

Because NS_InitEmbedding is provided by a statically-linked library, it is properly declared with NS_HIDDEN and as long as you link that library (embed_base_s) you should have access to that API.

--BDS
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to