-
Notifications
You must be signed in to change notification settings - Fork 0
/
FinchModule.cpp
executable file
·58 lines (42 loc) · 1.12 KB
/
FinchModule.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// #include generic factory stuff here
#include <mozilla/ModuleUtils.h>
#include "Finch.h"
#include "mozilla-config.h"
/** NEW Code? (Gecko > 2.0) **/
#include "nsIModule.h"
NS_GENERIC_FACTORY_CONSTRUCTOR(Finch)
NS_DEFINE_NAMED_CID(FINCH_CID);
static const mozilla::Module::CIDEntry kFinchCIDs[] = {
{ &kFINCH_CID, false, NULL, FinchConstructor },
{ NULL }
};
static const mozilla::Module::ContractIDEntry kFinchContracts[] = {
{ FINCH_CONTRACTID , &kFINCH_CID },
{ NULL }
};
static const mozilla::Module::CategoryEntry kFinchCategories[] = {
{ "finch", FINCH_CONTRACTID , FINCH_CONTRACTID },
{ NULL }
};
static const mozilla::Module kFinchModule = {
mozilla::Module::kVersion,
kFinchCIDs,
kFinchContracts,
kFinchCategories
};
NSMODULE_DEFN(nsSampleModule) = &kFinchModule;
NS_IMPL_MOZILLA192_NSGETMODULE(&kFinchModule)
/** OLD Code (Gecko < 2.0) **/
#if 0
NS_GENERIC_FACTORY_CONSTRUCTOR(Finch)
static nsModuleComponentInfo components[] =
{
{
FINCH_CLASSNAME,
FINCH_CID,
FINCH_CONTRACTID,
FinchConstructor,
}
};
NS_IMPL_NSGETMODULE("FinchModule", components)
#endif