1*e9cbe144SAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*e9cbe144SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*e9cbe144SAndrew Rist * or more contributor license agreements. See the NOTICE file
5*e9cbe144SAndrew Rist * distributed with this work for additional information
6*e9cbe144SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*e9cbe144SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*e9cbe144SAndrew Rist * "License"); you may not use this file except in compliance
9*e9cbe144SAndrew Rist * with the License. You may obtain a copy of the License at
10*e9cbe144SAndrew Rist *
11*e9cbe144SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12*e9cbe144SAndrew Rist *
13*e9cbe144SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*e9cbe144SAndrew Rist * software distributed under the License is distributed on an
15*e9cbe144SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*e9cbe144SAndrew Rist * KIND, either express or implied. See the License for the
17*e9cbe144SAndrew Rist * specific language governing permissions and limitations
18*e9cbe144SAndrew Rist * under the License.
19*e9cbe144SAndrew Rist *
20*e9cbe144SAndrew Rist *************************************************************/
21*e9cbe144SAndrew Rist
22*e9cbe144SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir #include <cppuhelper/factory.hxx>
25cdf0e10cSrcweir #include <cppuhelper/implementationentry.hxx>
26cdf0e10cSrcweir
27cdf0e10cSrcweir #include "CNodes.hxx"
28cdf0e10cSrcweir #include "librdf_repository.hxx"
29cdf0e10cSrcweir
30cdf0e10cSrcweir
31cdf0e10cSrcweir using namespace ::com::sun::star;
32cdf0e10cSrcweir
33cdf0e10cSrcweir
34cdf0e10cSrcweir extern "C"
35cdf0e10cSrcweir {
36cdf0e10cSrcweir
37cdf0e10cSrcweir SAL_DLLPUBLIC_EXPORT void SAL_CALL
component_getImplementationEnvironment(const sal_Char ** o_ppEnvironmentTypeName,uno_Environment **)38cdf0e10cSrcweir component_getImplementationEnvironment(const sal_Char **o_ppEnvironmentTypeName,
39cdf0e10cSrcweir uno_Environment ** /* ppEnvironment */)
40cdf0e10cSrcweir {
41cdf0e10cSrcweir *o_ppEnvironmentTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
42cdf0e10cSrcweir }
43cdf0e10cSrcweir
44cdf0e10cSrcweir static ::cppu::ImplementationEntry const entries[] = {
45cdf0e10cSrcweir { &comp_CBlankNode::_create,
46cdf0e10cSrcweir &comp_CBlankNode::_getImplementationName,
47cdf0e10cSrcweir &comp_CBlankNode::_getSupportedServiceNames,
48cdf0e10cSrcweir &::cppu::createSingleComponentFactory, 0, 0 },
49cdf0e10cSrcweir { &comp_CURI::_create,
50cdf0e10cSrcweir &comp_CURI::_getImplementationName,
51cdf0e10cSrcweir &comp_CURI::_getSupportedServiceNames,
52cdf0e10cSrcweir &::cppu::createSingleComponentFactory, 0, 0 },
53cdf0e10cSrcweir { &comp_CLiteral::_create,
54cdf0e10cSrcweir &comp_CLiteral::_getImplementationName,
55cdf0e10cSrcweir &comp_CLiteral::_getSupportedServiceNames,
56cdf0e10cSrcweir &::cppu::createSingleComponentFactory, 0, 0 },
57cdf0e10cSrcweir { &comp_librdf_Repository::_create,
58cdf0e10cSrcweir &comp_librdf_Repository::_getImplementationName,
59cdf0e10cSrcweir &comp_librdf_Repository::_getSupportedServiceNames,
60cdf0e10cSrcweir &::cppu::createSingleComponentFactory, 0, 0 },
61cdf0e10cSrcweir { 0, 0, 0, 0, 0, 0 }
62cdf0e10cSrcweir };
63cdf0e10cSrcweir
64cdf0e10cSrcweir SAL_DLLPUBLIC_EXPORT void * SAL_CALL
component_getFactory(const char * implName,void * serviceManager,void * registryKey)65cdf0e10cSrcweir component_getFactory(
66cdf0e10cSrcweir const char * implName, void * serviceManager, void * registryKey)
67cdf0e10cSrcweir {
68cdf0e10cSrcweir return ::cppu::component_getFactoryHelper(
69cdf0e10cSrcweir implName, serviceManager, registryKey, entries);
70cdf0e10cSrcweir }
71cdf0e10cSrcweir
72cdf0e10cSrcweir } // extern "C"
73cdf0e10cSrcweir
74