Implement compatibility wrapper so that binary components can be compatible with both Firefox 3.6 and Firefox 4, as a result of registration changes from bug 568691.

This commit is contained in:
Benjamin Smedberg
2010-06-24 16:36:27 -04:00
parent adc7781ad8
commit 63e9dc5132
8 changed files with 173 additions and 3 deletions

View File

@@ -101,3 +101,9 @@ static const mozilla::Module kSampleModule = {
// The following line implements the one-and-only "NSModule" symbol exported from this
// shared library.
NSMODULE_DEFN(nsSampleModule) = &kSampleModule;
// The following line implements the one-and-only "NSGetModule" symbol
// for compatibility with mozilla 1.9.2. You should only use this
// if you need a binary which is backwards-compatible and if you use
// interfaces carefully across multiple versions.
NS_IMPL_MOZILLA192_NSGETMODULE(&kSampleModule)