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