1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
3
* The contents of this file are subject to the Mozilla Public
4
* License Version 1.1 (the "License"); you may not use this file
5
* except in compliance with the License. You may obtain a copy of
6
* the License at http://www.mozilla.org/MPL/
8
* Software distributed under the License is distributed on an "AS
9
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10
* implied. See the License for the specific language governing
11
* rights and limitations under the License.
13
* The Original Code is mozilla.org code.
15
* The Initial Developer of the Original Code is Netscape Communications
16
* Corporation. Portions created by Netscape are
17
* Copyright (C) 2001 Netscape Communications Corporation. All
21
* Christopher Seawood <cls@seawood.org>
22
* Chris Waterson <waterson@netscape.com>
25
#line 26 "nsStaticComponents.cpp.in"
26
#define XPCOM_TRANSLATE_NSGM_ENTRY_POINT 1
28
#include "nsIGenericFactory.h"
29
#include "nsStaticComponent.h"
32
* Construct a unique NSGetModule entry point for a generic module.
34
#define NSGETMODULE(_name) _name##_NSGetmodule
37
* Declare an NSGetModule() routine for a generic module.
39
#define DECL_NSGETMODULE(_name) \
40
extern nsModuleInfo NSMODULEINFO(_name); \
41
extern "C" NS_EXPORT nsresult \
42
NSGETMODULE(_name) (nsIComponentManager* aCompMgr, \
44
nsIModule** aResult) \
46
return NS_NewGenericModule2(&NSMODULEINFO(_name), aResult);\
49
// NSGetModule entry points
51
#line 52 "nsStaticComponents.cpp.in"
54
* The nsStaticModuleInfo
56
static nsStaticModuleInfo gStaticModuleInfo[] = {
57
#define MODULE(_name) { (#_name), NSGETMODULE(_name) }
59
#line 60 "nsStaticComponents.cpp.in"
63
* Our NSGetStaticModuleInfoFunc
66
app_getModuleInfo(nsStaticModuleInfo **info, PRUint32 *count)
68
*info = gStaticModuleInfo;
69
*count = sizeof(gStaticModuleInfo) / sizeof(gStaticModuleInfo[0]);