1*b1cdbd2cSJim Jagielski /**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim Jagielski #if ! defined INCLUDED_DP_MANAGER_H
25*b1cdbd2cSJim Jagielski #define INCLUDED_DP_MANAGER_H
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski #include "dp_manager.hrc"
28*b1cdbd2cSJim Jagielski #include "dp_misc.h"
29*b1cdbd2cSJim Jagielski #include "dp_interact.h"
30*b1cdbd2cSJim Jagielski #include "dp_activepackages.hxx"
31*b1cdbd2cSJim Jagielski #include "rtl/ref.hxx"
32*b1cdbd2cSJim Jagielski #include "cppuhelper/compbase1.hxx"
33*b1cdbd2cSJim Jagielski #include "cppuhelper/implbase2.hxx"
34*b1cdbd2cSJim Jagielski #include "ucbhelper/content.hxx"
35*b1cdbd2cSJim Jagielski #include "com/sun/star/deployment/XPackageRegistry.hpp"
36*b1cdbd2cSJim Jagielski #include "com/sun/star/deployment/XPackageManager.hpp"
37*b1cdbd2cSJim Jagielski #include <memory>
38*b1cdbd2cSJim Jagielski
39*b1cdbd2cSJim Jagielski
40*b1cdbd2cSJim Jagielski namespace css = ::com::sun::star;
41*b1cdbd2cSJim Jagielski
42*b1cdbd2cSJim Jagielski namespace dp_manager {
43*b1cdbd2cSJim Jagielski
44*b1cdbd2cSJim Jagielski typedef ::cppu::WeakComponentImplHelper1<
45*b1cdbd2cSJim Jagielski css::deployment::XPackageManager > t_pm_helper;
46*b1cdbd2cSJim Jagielski
47*b1cdbd2cSJim Jagielski //==============================================================================
48*b1cdbd2cSJim Jagielski class PackageManagerImpl : private ::dp_misc::MutexHolder, public t_pm_helper
49*b1cdbd2cSJim Jagielski {
50*b1cdbd2cSJim Jagielski css::uno::Reference<css::uno::XComponentContext> m_xComponentContext;
51*b1cdbd2cSJim Jagielski ::rtl::OUString m_context;
52*b1cdbd2cSJim Jagielski ::rtl::OUString m_registrationData;
53*b1cdbd2cSJim Jagielski ::rtl::OUString m_registrationData_expanded;
54*b1cdbd2cSJim Jagielski ::rtl::OUString m_registryCache;
55*b1cdbd2cSJim Jagielski bool m_readOnly;
56*b1cdbd2cSJim Jagielski
57*b1cdbd2cSJim Jagielski ::rtl::OUString m_activePackages;
58*b1cdbd2cSJim Jagielski ::rtl::OUString m_activePackages_expanded;
59*b1cdbd2cSJim Jagielski ::std::auto_ptr< ActivePackages > m_activePackagesDB;
60*b1cdbd2cSJim Jagielski //This mutex is only used for synchronization in addPackage
61*b1cdbd2cSJim Jagielski ::osl::Mutex m_addMutex;
62*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XProgressHandler> m_xLogFile;
63*b1cdbd2cSJim Jagielski inline void logIntern( css::uno::Any const & status );
64*b1cdbd2cSJim Jagielski void fireModified();
65*b1cdbd2cSJim Jagielski
66*b1cdbd2cSJim Jagielski css::uno::Reference<css::deployment::XPackageRegistry> m_xRegistry;
67*b1cdbd2cSJim Jagielski
68*b1cdbd2cSJim Jagielski void initRegistryBackends();
69*b1cdbd2cSJim Jagielski void initActivationLayer(
70*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv );
71*b1cdbd2cSJim Jagielski ::rtl::OUString detectMediaType(
72*b1cdbd2cSJim Jagielski ::ucbhelper::Content const & ucbContent, bool throw_exc = true );
73*b1cdbd2cSJim Jagielski ::rtl::OUString insertToActivationLayer(
74*b1cdbd2cSJim Jagielski css::uno::Sequence<css::beans::NamedValue> const & properties,
75*b1cdbd2cSJim Jagielski ::rtl::OUString const & mediaType,
76*b1cdbd2cSJim Jagielski ::ucbhelper::Content const & sourceContent,
77*b1cdbd2cSJim Jagielski ::rtl::OUString const & title, ActivePackages::Data * dbData );
78*b1cdbd2cSJim Jagielski void insertToActivationLayerDB(
79*b1cdbd2cSJim Jagielski ::rtl::OUString const & id, ActivePackages::Data const & dbData );
80*b1cdbd2cSJim Jagielski
81*b1cdbd2cSJim Jagielski void deletePackageFromCache(
82*b1cdbd2cSJim Jagielski css::uno::Reference<css::deployment::XPackage> const & xPackage,
83*b1cdbd2cSJim Jagielski ::rtl::OUString const & destFolder );
84*b1cdbd2cSJim Jagielski
85*b1cdbd2cSJim Jagielski bool isInstalled(
86*b1cdbd2cSJim Jagielski css::uno::Reference<css::deployment::XPackage> const & package);
87*b1cdbd2cSJim Jagielski
88*b1cdbd2cSJim Jagielski bool synchronizeRemovedExtensions(
89*b1cdbd2cSJim Jagielski css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel,
90*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv);
91*b1cdbd2cSJim Jagielski
92*b1cdbd2cSJim Jagielski bool synchronizeAddedExtensions(
93*b1cdbd2cSJim Jagielski css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel,
94*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv);
95*b1cdbd2cSJim Jagielski
96*b1cdbd2cSJim Jagielski class CmdEnvWrapperImpl
97*b1cdbd2cSJim Jagielski : public ::cppu::WeakImplHelper2< css::ucb::XCommandEnvironment,
98*b1cdbd2cSJim Jagielski css::ucb::XProgressHandler >
99*b1cdbd2cSJim Jagielski {
100*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XProgressHandler> m_xLogFile;
101*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XProgressHandler> m_xUserProgress;
102*b1cdbd2cSJim Jagielski css::uno::Reference<css::task::XInteractionHandler>
103*b1cdbd2cSJim Jagielski m_xUserInteractionHandler;
104*b1cdbd2cSJim Jagielski
105*b1cdbd2cSJim Jagielski public:
106*b1cdbd2cSJim Jagielski virtual ~CmdEnvWrapperImpl();
107*b1cdbd2cSJim Jagielski CmdEnvWrapperImpl(
108*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment>
109*b1cdbd2cSJim Jagielski const & xUserCmdEnv,
110*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XProgressHandler> const & xLogFile );
111*b1cdbd2cSJim Jagielski
112*b1cdbd2cSJim Jagielski // XCommandEnvironment
113*b1cdbd2cSJim Jagielski virtual css::uno::Reference<css::task::XInteractionHandler> SAL_CALL
114*b1cdbd2cSJim Jagielski getInteractionHandler() throw (css::uno::RuntimeException);
115*b1cdbd2cSJim Jagielski virtual css::uno::Reference<css::ucb::XProgressHandler> SAL_CALL
116*b1cdbd2cSJim Jagielski getProgressHandler() throw (css::uno::RuntimeException);
117*b1cdbd2cSJim Jagielski
118*b1cdbd2cSJim Jagielski // XProgressHandler
119*b1cdbd2cSJim Jagielski virtual void SAL_CALL push( css::uno::Any const & Status )
120*b1cdbd2cSJim Jagielski throw (css::uno::RuntimeException);
121*b1cdbd2cSJim Jagielski virtual void SAL_CALL update( css::uno::Any const & Status )
122*b1cdbd2cSJim Jagielski throw (css::uno::RuntimeException);
123*b1cdbd2cSJim Jagielski virtual void SAL_CALL pop() throw (css::uno::RuntimeException);
124*b1cdbd2cSJim Jagielski };
125*b1cdbd2cSJim Jagielski
126*b1cdbd2cSJim Jagielski protected:
127*b1cdbd2cSJim Jagielski inline void check();
128*b1cdbd2cSJim Jagielski virtual void SAL_CALL disposing();
129*b1cdbd2cSJim Jagielski
130*b1cdbd2cSJim Jagielski virtual ~PackageManagerImpl();
PackageManagerImpl(css::uno::Reference<css::uno::XComponentContext> const & xComponentContext,::rtl::OUString const & context)131*b1cdbd2cSJim Jagielski inline PackageManagerImpl(
132*b1cdbd2cSJim Jagielski css::uno::Reference<css::uno::XComponentContext>
133*b1cdbd2cSJim Jagielski const & xComponentContext, ::rtl::OUString const & context )
134*b1cdbd2cSJim Jagielski : t_pm_helper( getMutex() ),
135*b1cdbd2cSJim Jagielski m_xComponentContext( xComponentContext ),
136*b1cdbd2cSJim Jagielski m_context( context ),
137*b1cdbd2cSJim Jagielski m_readOnly( true )
138*b1cdbd2cSJim Jagielski {}
139*b1cdbd2cSJim Jagielski
140*b1cdbd2cSJim Jagielski public:
141*b1cdbd2cSJim Jagielski static css::uno::Reference<css::deployment::XPackageManager> create(
142*b1cdbd2cSJim Jagielski css::uno::Reference<css::uno::XComponentContext>
143*b1cdbd2cSJim Jagielski const & xComponentContext, ::rtl::OUString const & context );
144*b1cdbd2cSJim Jagielski
145*b1cdbd2cSJim Jagielski // XComponent
146*b1cdbd2cSJim Jagielski virtual void SAL_CALL dispose() throw (css::uno::RuntimeException);
147*b1cdbd2cSJim Jagielski virtual void SAL_CALL addEventListener(
148*b1cdbd2cSJim Jagielski css::uno::Reference<css::lang::XEventListener> const & xListener )
149*b1cdbd2cSJim Jagielski throw (css::uno::RuntimeException);
150*b1cdbd2cSJim Jagielski virtual void SAL_CALL removeEventListener(
151*b1cdbd2cSJim Jagielski css::uno::Reference<css::lang::XEventListener> const & xListener )
152*b1cdbd2cSJim Jagielski throw (css::uno::RuntimeException);
153*b1cdbd2cSJim Jagielski
154*b1cdbd2cSJim Jagielski // XModifyBroadcaster
155*b1cdbd2cSJim Jagielski virtual void SAL_CALL addModifyListener(
156*b1cdbd2cSJim Jagielski css::uno::Reference<css::util::XModifyListener> const & xListener )
157*b1cdbd2cSJim Jagielski throw (css::uno::RuntimeException);
158*b1cdbd2cSJim Jagielski virtual void SAL_CALL removeModifyListener(
159*b1cdbd2cSJim Jagielski css::uno::Reference<css::util::XModifyListener> const & xListener )
160*b1cdbd2cSJim Jagielski throw (css::uno::RuntimeException);
161*b1cdbd2cSJim Jagielski
162*b1cdbd2cSJim Jagielski // XPackageManager
163*b1cdbd2cSJim Jagielski virtual ::rtl::OUString SAL_CALL getContext()
164*b1cdbd2cSJim Jagielski throw (css::uno::RuntimeException);
165*b1cdbd2cSJim Jagielski virtual css::uno::Sequence<
166*b1cdbd2cSJim Jagielski css::uno::Reference<css::deployment::XPackageTypeInfo> > SAL_CALL
167*b1cdbd2cSJim Jagielski getSupportedPackageTypes() throw (css::uno::RuntimeException);
168*b1cdbd2cSJim Jagielski
169*b1cdbd2cSJim Jagielski virtual css::uno::Reference<css::task::XAbortChannel> SAL_CALL
170*b1cdbd2cSJim Jagielski createAbortChannel() throw (css::uno::RuntimeException);
171*b1cdbd2cSJim Jagielski
172*b1cdbd2cSJim Jagielski virtual css::uno::Reference<css::deployment::XPackage> SAL_CALL addPackage(
173*b1cdbd2cSJim Jagielski ::rtl::OUString const & url,
174*b1cdbd2cSJim Jagielski css::uno::Sequence<css::beans::NamedValue> const & properties,
175*b1cdbd2cSJim Jagielski ::rtl::OUString const & mediaType,
176*b1cdbd2cSJim Jagielski css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel,
177*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
178*b1cdbd2cSJim Jagielski throw (css::deployment::DeploymentException,
179*b1cdbd2cSJim Jagielski css::ucb::CommandFailedException,
180*b1cdbd2cSJim Jagielski css::ucb::CommandAbortedException,
181*b1cdbd2cSJim Jagielski css::lang::IllegalArgumentException,
182*b1cdbd2cSJim Jagielski css::uno::RuntimeException);
183*b1cdbd2cSJim Jagielski
184*b1cdbd2cSJim Jagielski virtual css::uno::Reference<css::deployment::XPackage> SAL_CALL importExtension(
185*b1cdbd2cSJim Jagielski css::uno::Reference<css::deployment::XPackage> const & extension,
186*b1cdbd2cSJim Jagielski css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel,
187*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
188*b1cdbd2cSJim Jagielski throw (css::deployment::DeploymentException,
189*b1cdbd2cSJim Jagielski css::ucb::CommandFailedException,
190*b1cdbd2cSJim Jagielski css::ucb::CommandAbortedException,
191*b1cdbd2cSJim Jagielski css::lang::IllegalArgumentException,
192*b1cdbd2cSJim Jagielski css::uno::RuntimeException);
193*b1cdbd2cSJim Jagielski
194*b1cdbd2cSJim Jagielski virtual void SAL_CALL removePackage(
195*b1cdbd2cSJim Jagielski ::rtl::OUString const & id, ::rtl::OUString const & fileName,
196*b1cdbd2cSJim Jagielski css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel,
197*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
198*b1cdbd2cSJim Jagielski throw (css::deployment::DeploymentException,
199*b1cdbd2cSJim Jagielski css::ucb::CommandFailedException,
200*b1cdbd2cSJim Jagielski css::ucb::CommandAbortedException,
201*b1cdbd2cSJim Jagielski css::lang::IllegalArgumentException,
202*b1cdbd2cSJim Jagielski css::uno::RuntimeException);
203*b1cdbd2cSJim Jagielski
204*b1cdbd2cSJim Jagielski ::rtl::OUString getDeployPath( ActivePackages::Data const & data );
205*b1cdbd2cSJim Jagielski css::uno::Reference<css::deployment::XPackage> SAL_CALL getDeployedPackage_(
206*b1cdbd2cSJim Jagielski ::rtl::OUString const & id, ::rtl::OUString const & fileName,
207*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv );
208*b1cdbd2cSJim Jagielski css::uno::Reference<css::deployment::XPackage> getDeployedPackage_(
209*b1cdbd2cSJim Jagielski ::rtl::OUString const & id, ActivePackages::Data const & data,
210*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv,
211*b1cdbd2cSJim Jagielski bool ignoreAlienPlatforms = false );
212*b1cdbd2cSJim Jagielski virtual css::uno::Reference<css::deployment::XPackage> SAL_CALL
213*b1cdbd2cSJim Jagielski getDeployedPackage(
214*b1cdbd2cSJim Jagielski ::rtl::OUString const & id, ::rtl::OUString const & fileName,
215*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
216*b1cdbd2cSJim Jagielski throw (css::deployment::DeploymentException,
217*b1cdbd2cSJim Jagielski css::ucb::CommandFailedException,
218*b1cdbd2cSJim Jagielski css::lang::IllegalArgumentException, css::uno::RuntimeException);
219*b1cdbd2cSJim Jagielski
220*b1cdbd2cSJim Jagielski css::uno::Sequence< css::uno::Reference<css::deployment::XPackage> >
221*b1cdbd2cSJim Jagielski getDeployedPackages_(
222*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv );
223*b1cdbd2cSJim Jagielski virtual css::uno::Sequence< css::uno::Reference<css::deployment::XPackage> >
224*b1cdbd2cSJim Jagielski SAL_CALL getDeployedPackages(
225*b1cdbd2cSJim Jagielski css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel,
226*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
227*b1cdbd2cSJim Jagielski throw (css::deployment::DeploymentException,
228*b1cdbd2cSJim Jagielski css::ucb::CommandFailedException,
229*b1cdbd2cSJim Jagielski css::ucb::CommandAbortedException,
230*b1cdbd2cSJim Jagielski css::lang::IllegalArgumentException,
231*b1cdbd2cSJim Jagielski css::uno::RuntimeException);
232*b1cdbd2cSJim Jagielski
233*b1cdbd2cSJim Jagielski virtual void SAL_CALL reinstallDeployedPackages(
234*b1cdbd2cSJim Jagielski css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel,
235*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
236*b1cdbd2cSJim Jagielski throw (css::deployment::DeploymentException,
237*b1cdbd2cSJim Jagielski css::ucb::CommandFailedException,
238*b1cdbd2cSJim Jagielski css::ucb::CommandAbortedException,
239*b1cdbd2cSJim Jagielski css::lang::IllegalArgumentException,
240*b1cdbd2cSJim Jagielski css::uno::RuntimeException);
241*b1cdbd2cSJim Jagielski
242*b1cdbd2cSJim Jagielski virtual ::sal_Bool SAL_CALL isReadOnly( )
243*b1cdbd2cSJim Jagielski throw (::com::sun::star::uno::RuntimeException);
244*b1cdbd2cSJim Jagielski
245*b1cdbd2cSJim Jagielski virtual ::sal_Bool SAL_CALL synchronize(
246*b1cdbd2cSJim Jagielski css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel,
247*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
248*b1cdbd2cSJim Jagielski throw (css::deployment::DeploymentException,
249*b1cdbd2cSJim Jagielski css::ucb::CommandFailedException,
250*b1cdbd2cSJim Jagielski css::ucb::CommandAbortedException,
251*b1cdbd2cSJim Jagielski css::uno::RuntimeException);
252*b1cdbd2cSJim Jagielski
253*b1cdbd2cSJim Jagielski virtual css::uno::Sequence<css::uno::Reference<css::deployment::XPackage> > SAL_CALL
254*b1cdbd2cSJim Jagielski getExtensionsWithUnacceptedLicenses(
255*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv)
256*b1cdbd2cSJim Jagielski throw (css::deployment::DeploymentException,
257*b1cdbd2cSJim Jagielski css::uno::RuntimeException);
258*b1cdbd2cSJim Jagielski
259*b1cdbd2cSJim Jagielski virtual sal_Int32 SAL_CALL checkPrerequisites(
260*b1cdbd2cSJim Jagielski css::uno::Reference<css::deployment::XPackage> const & extension,
261*b1cdbd2cSJim Jagielski css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel,
262*b1cdbd2cSJim Jagielski css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
263*b1cdbd2cSJim Jagielski throw (css::deployment::DeploymentException,
264*b1cdbd2cSJim Jagielski css::ucb::CommandFailedException,
265*b1cdbd2cSJim Jagielski css::ucb::CommandAbortedException,
266*b1cdbd2cSJim Jagielski css::lang::IllegalArgumentException,
267*b1cdbd2cSJim Jagielski css::uno::RuntimeException);
268*b1cdbd2cSJim Jagielski };
269*b1cdbd2cSJim Jagielski
270*b1cdbd2cSJim Jagielski //______________________________________________________________________________
check()271*b1cdbd2cSJim Jagielski inline void PackageManagerImpl::check()
272*b1cdbd2cSJim Jagielski {
273*b1cdbd2cSJim Jagielski ::osl::MutexGuard guard( getMutex() );
274*b1cdbd2cSJim Jagielski if (rBHelper.bInDispose || rBHelper.bDisposed)
275*b1cdbd2cSJim Jagielski throw css::lang::DisposedException(
276*b1cdbd2cSJim Jagielski OUSTR("PackageManager instance has already been disposed!"),
277*b1cdbd2cSJim Jagielski static_cast< ::cppu::OWeakObject * >(this) );
278*b1cdbd2cSJim Jagielski }
279*b1cdbd2cSJim Jagielski
280*b1cdbd2cSJim Jagielski //______________________________________________________________________________
logIntern(css::uno::Any const & status)281*b1cdbd2cSJim Jagielski inline void PackageManagerImpl::logIntern( css::uno::Any const & status )
282*b1cdbd2cSJim Jagielski {
283*b1cdbd2cSJim Jagielski if (m_xLogFile.is())
284*b1cdbd2cSJim Jagielski m_xLogFile->update( status );
285*b1cdbd2cSJim Jagielski }
286*b1cdbd2cSJim Jagielski
287*b1cdbd2cSJim Jagielski }
288*b1cdbd2cSJim Jagielski
289*b1cdbd2cSJim Jagielski #endif
290*b1cdbd2cSJim Jagielski
291