Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : */
9 :
10 : #include <sal/config.h>
11 :
12 : #include <cppuhelper/factory.hxx>
13 : #include <cppuhelper/implementationentry.hxx>
14 : #include <sal/types.h>
15 :
16 : #include "MDriver.hxx"
17 :
18 : namespace {
19 :
20 : static cppu::ImplementationEntry const services[] = {
21 : { &connectivity::mork::create,
22 : &connectivity::mork::MorkDriver::getImplementationName_Static,
23 : &connectivity::mork::MorkDriver::getSupportedServiceNames_Static,
24 : &cppu::createSingleComponentFactory, 0, 0 },
25 : { 0, 0, 0, 0, 0, 0 }
26 : };
27 :
28 : }
29 :
30 2 : extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL mork_component_getFactory(
31 : char const * pImplName, void * pServiceManager, void * pRegistryKey)
32 : {
33 : return cppu::component_getFactoryHelper(
34 2 : pImplName, pServiceManager, pRegistryKey, services);
35 : }
36 :
37 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|