My Project
UDK 3.2.7 C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
module.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
3  *
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * Copyright 2000, 2010 Oracle and/or its affiliates.
7  *
8  * OpenOffice.org - a multi-platform office productivity suite
9  *
10  * This file is part of OpenOffice.org.
11  *
12  * OpenOffice.org is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU Lesser General Public License version 3
14  * only, as published by the Free Software Foundation.
15  *
16  * OpenOffice.org is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Lesser General Public License version 3 for more details
20  * (a copy is included in the LICENSE file that accompanied this code).
21  *
22  * You should have received a copy of the GNU Lesser General Public License
23  * version 3 along with OpenOffice.org. If not, see
24  * <http://www.openoffice.org/license.html>
25  * for a copy of the LGPLv3 License.
26  *
27  ************************************************************************/
28 
29 #ifndef _OSL_MODULE_H_
30 #define _OSL_MODULE_H_
31 
32 # include <rtl/ustring.h>
33 # include <rtl/tencinfo.h>
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 #ifdef SAL_DLLPREFIX
40 #define SAL_MODULENAME(name) SAL_DLLPREFIX name SAL_DLLEXTENSION
41 #else
42 #define SAL_MODULENAME(name) name SAL_DLLEXTENSION
43 #endif
44 
45 #if defined(SAL_W32)
46 #define SAL_MODULENAME_WITH_VERSION(name, version) name version SAL_DLLEXTENSION
47 
48 #elif defined(SAL_UNX)
49 #if defined(MACOSX)
50 #define SAL_MODULENAME_WITH_VERSION(name, version) SAL_DLLPREFIX name ".dylib." version
51 #else
52 #define SAL_MODULENAME_WITH_VERSION(name, version) SAL_DLLPREFIX name SAL_DLLEXTENSION "." version
53 #endif
54 
55 #endif
56 
57 #define SAL_LOADMODULE_DEFAULT 0x00000
58 #define SAL_LOADMODULE_LAZY 0x00001
59 #define SAL_LOADMODULE_NOW 0x00002
60 #define SAL_LOADMODULE_GLOBAL 0x00100
61 
62 typedef void* oslModule;
63 
68 typedef void ( SAL_CALL *oslGenericFunction )( void );
69 
75 SAL_DLLPUBLIC oslModule SAL_CALL osl_loadModule(rtl_uString *strModuleName, sal_Int32 nRtldMode);
76 
83 SAL_DLLPUBLIC oslModule SAL_CALL osl_loadModuleAscii(const sal_Char *pModuleName, sal_Int32 nRtldMode);
84 
102 SAL_DLLPUBLIC oslModule SAL_CALL osl_loadModuleRelative(
103  oslGenericFunction baseModule, rtl_uString * relativePath, sal_Int32 mode);
104 
123 SAL_DLLPUBLIC oslModule SAL_CALL osl_loadModuleRelativeAscii(
124  oslGenericFunction baseModule, char const * relativePath, sal_Int32 mode);
125  /* This function is guaranteed not to call into
126  FullTextEncodingDataSingleton in sal/textenc/textenc.cxx, so can be used
127  in its implementation without running into circles. */
128 
149 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getModuleHandle(rtl_uString *pModuleName, oslModule *pResult);
150 
153 SAL_DLLPUBLIC void SAL_CALL osl_unloadModule(oslModule Module);
154 
158 SAL_DLLPUBLIC void* SAL_CALL osl_getSymbol( oslModule Module, rtl_uString *strSymbolName);
159 
183  oslModule Module, rtl_uString *ustrFunctionSymbolName );
184 
208  oslModule Module, const sal_Char *pSymbol );
209 
210 
217  void *pv, rtl_uString **pustrURL );
218 
241  oslGenericFunction pf, rtl_uString **pustrFunctionURL );
242 
243 #ifdef __cplusplus
244 }
245 #endif
246 
247 #endif /* _OSL_MODULE_H_ */
248 
249 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */