1*3716f815SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*3716f815SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*3716f815SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*3716f815SAndrew Rist * distributed with this work for additional information 6*3716f815SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*3716f815SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*3716f815SAndrew Rist * "License"); you may not use this file except in compliance 9*3716f815SAndrew Rist * with the License. You may obtain a copy of the License at 10*3716f815SAndrew Rist * 11*3716f815SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*3716f815SAndrew Rist * 13*3716f815SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*3716f815SAndrew Rist * software distributed under the License is distributed on an 15*3716f815SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*3716f815SAndrew Rist * KIND, either express or implied. See the License for the 17*3716f815SAndrew Rist * specific language governing permissions and limitations 18*3716f815SAndrew Rist * under the License. 19*3716f815SAndrew Rist * 20*3716f815SAndrew Rist *************************************************************/ 21*3716f815SAndrew Rist 22*3716f815SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_io.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <osl/diagnose.h> 28cdf0e10cSrcweir #include <cppuhelper/factory.hxx> 29cdf0e10cSrcweir #include <cppuhelper/implementationentry.hxx> 30cdf0e10cSrcweir 31cdf0e10cSrcweir #include <com/sun/star/registry/XRegistryKey.hpp> 32cdf0e10cSrcweir 33cdf0e10cSrcweir using namespace ::rtl; 34cdf0e10cSrcweir using namespace ::cppu; 35cdf0e10cSrcweir using namespace ::com::sun::star::uno; 36cdf0e10cSrcweir using namespace ::com::sun::star::lang; 37cdf0e10cSrcweir using namespace ::com::sun::star::registry; 38cdf0e10cSrcweir 39cdf0e10cSrcweir #include "factreg.hxx" 40cdf0e10cSrcweir 41cdf0e10cSrcweir namespace io_stm 42cdf0e10cSrcweir { 43cdf0e10cSrcweir rtl_StandardModuleCount g_moduleCount = MODULE_COUNT_INIT; 44cdf0e10cSrcweir } 45cdf0e10cSrcweir 46cdf0e10cSrcweir using namespace io_stm; 47cdf0e10cSrcweir 48cdf0e10cSrcweir static struct ImplementationEntry g_entries[] = 49cdf0e10cSrcweir { 50cdf0e10cSrcweir { 51cdf0e10cSrcweir OPipeImpl_CreateInstance, OPipeImpl_getImplementationName , 52cdf0e10cSrcweir OPipeImpl_getSupportedServiceNames, createSingleComponentFactory , 53cdf0e10cSrcweir &g_moduleCount.modCnt , 0 54cdf0e10cSrcweir }, 55cdf0e10cSrcweir { 56cdf0e10cSrcweir OPumpImpl_CreateInstance, OPumpImpl_getImplementationName , 57cdf0e10cSrcweir OPumpImpl_getSupportedServiceNames, createSingleComponentFactory , 58cdf0e10cSrcweir &g_moduleCount.modCnt , 0 59cdf0e10cSrcweir }, 60cdf0e10cSrcweir { 61cdf0e10cSrcweir ODataInputStream_CreateInstance, ODataInputStream_getImplementationName, 62cdf0e10cSrcweir ODataInputStream_getSupportedServiceNames, createSingleComponentFactory, 63cdf0e10cSrcweir &g_moduleCount.modCnt, 0 64cdf0e10cSrcweir }, 65cdf0e10cSrcweir { 66cdf0e10cSrcweir ODataOutputStream_CreateInstance, ODataOutputStream_getImplementationName, 67cdf0e10cSrcweir ODataOutputStream_getSupportedServiceNames, createSingleComponentFactory, 68cdf0e10cSrcweir &g_moduleCount.modCnt, 0 69cdf0e10cSrcweir }, 70cdf0e10cSrcweir { 71cdf0e10cSrcweir OObjectInputStream_CreateInstance, OObjectInputStream_getImplementationName, 72cdf0e10cSrcweir OObjectInputStream_getSupportedServiceNames, createSingleComponentFactory, 73cdf0e10cSrcweir &g_moduleCount.modCnt, 0 74cdf0e10cSrcweir }, 75cdf0e10cSrcweir { 76cdf0e10cSrcweir OObjectOutputStream_CreateInstance, OObjectOutputStream_getImplementationName, 77cdf0e10cSrcweir OObjectOutputStream_getSupportedServiceNames, createSingleComponentFactory, 78cdf0e10cSrcweir &g_moduleCount.modCnt, 0 79cdf0e10cSrcweir }, 80cdf0e10cSrcweir { 81cdf0e10cSrcweir OMarkableInputStream_CreateInstance, OMarkableInputStream_getImplementationName, 82cdf0e10cSrcweir OMarkableInputStream_getSupportedServiceNames, createSingleComponentFactory, 83cdf0e10cSrcweir &g_moduleCount.modCnt, 0 84cdf0e10cSrcweir }, 85cdf0e10cSrcweir { 86cdf0e10cSrcweir OMarkableOutputStream_CreateInstance, OMarkableOutputStream_getImplementationName, 87cdf0e10cSrcweir OMarkableOutputStream_getSupportedServiceNames, createSingleComponentFactory, 88cdf0e10cSrcweir &g_moduleCount.modCnt, 0 89cdf0e10cSrcweir }, 90cdf0e10cSrcweir { 0, 0, 0, 0, 0, 0 } 91cdf0e10cSrcweir 92cdf0e10cSrcweir }; 93cdf0e10cSrcweir 94cdf0e10cSrcweir extern "C" 95cdf0e10cSrcweir { 96cdf0e10cSrcweir 97cdf0e10cSrcweir sal_Bool SAL_CALL component_canUnload( TimeValue *pTime ) 98cdf0e10cSrcweir { 99cdf0e10cSrcweir return g_moduleCount.canUnload( &g_moduleCount , pTime ); 100cdf0e10cSrcweir } 101cdf0e10cSrcweir 102cdf0e10cSrcweir //================================================================================================== 103cdf0e10cSrcweir void SAL_CALL component_getImplementationEnvironment( 104cdf0e10cSrcweir const sal_Char ** ppEnvTypeName, uno_Environment ** ) 105cdf0e10cSrcweir { 106cdf0e10cSrcweir *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; 107cdf0e10cSrcweir } 108cdf0e10cSrcweir //================================================================================================== 109cdf0e10cSrcweir void * SAL_CALL component_getFactory( 110cdf0e10cSrcweir const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) 111cdf0e10cSrcweir { 112cdf0e10cSrcweir return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , g_entries ); 113cdf0e10cSrcweir } 114cdf0e10cSrcweir 115cdf0e10cSrcweir } 116