Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0b67dd10
Kaydet (Commit)
0b67dd10
authored
Nis 09, 2012
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use lo_get_libmap()
üst
0b165a6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
17 deletions
+29
-17
shlib.cxx
cppuhelper/source/shlib.cxx
+29
-17
No files found.
cppuhelper/source/shlib.cxx
Dosyayı görüntüle @
0b67dd10
...
...
@@ -46,6 +46,10 @@
#endif
#include <vector>
#ifdef IOS
#include <osl/detail/ios-bootstrap.h>
#endif
#define OUSTR(x) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(x) )
...
...
@@ -463,7 +467,6 @@ extern "C"
extern
void
*
configmgr_component_getFactory
(
const
sal_Char
*
pImplName
,
void
*
pServiceManager
,
void
*
pRegistryKey
);
extern
void
*
fwk_component_getFactory
(
const
sal_Char
*
pImplName
,
void
*
pServiceManager
,
void
*
pRegistryKey
);
extern
void
*
i18npool_component_getFactory
(
const
sal_Char
*
pImplName
,
void
*
pServiceManager
,
void
*
pRegistryKey
);
extern
void
*
sc_component_getFactory
(
const
sal_Char
*
pImplName
,
void
*
pServiceManager
,
void
*
pRegistryKey
);
extern
void
*
ucb_component_getFactory
(
const
sal_Char
*
pImplName
,
void
*
pServiceManager
,
void
*
pRegistryKey
);
extern
void
*
ucpfile_component_getFactory
(
const
sal_Char
*
pImplName
,
void
*
pServiceManager
,
void
*
pRegistryKey
);
}
...
...
@@ -523,24 +526,33 @@ Reference< XInterface > SAL_CALL loadSharedLibComponentFactory(
oslGenericFunction
pSym
=
NULL
;
#ifdef DISABLE_DYNLOADING
if
(
rLibName
.
equals
(
OUSTR
(
"bootstrap.uno"
SAL_DLLEXTENSION
))
)
pSym
=
(
oslGenericFunction
)
bootstrap_component_getFactory
;
else
if
(
rLibName
.
equals
(
OUSTR
(
"libucb1.a"
))
)
pSym
=
(
oslGenericFunction
)
ucb_component_getFactory
;
else
if
(
rLibName
.
equals
(
OUSTR
(
"configmgr.uno.a"
))
)
pSym
=
(
oslGenericFunction
)
configmgr_component_getFactory
;
else
if
(
rLibName
.
equals
(
OUSTR
(
"libucpfile1.a"
))
)
pSym
=
(
oslGenericFunction
)
ucpfile_component_getFactory
;
else
if
(
rLibName
.
equals
(
OUSTR
(
"libsclo.a"
))
)
pSym
=
(
oslGenericFunction
)
sc_component_getFactory
;
else
if
(
rLibName
.
equals
(
OUSTR
(
"libfwklo.a"
))
)
pSym
=
(
oslGenericFunction
)
fwk_component_getFactory
;
else
if
(
rLibName
.
equals
(
OUSTR
(
"i18npool.uno.a"
))
)
pSym
=
(
oslGenericFunction
)
i18npool_component_getFactory
;
else
// First test library names that aren't app-specific.
static
lib_to_component_mapping
non_app_specific_map
[]
=
{
{
"bootstrap.uno"
SAL_DLLEXTENSION
,
bootstrap_component_getFactory
},
{
"configmgr.uno.a"
,
configmgr_component_getFactory
},
{
"i18npool.uno.a"
,
i18npool_component_getFactory
},
{
"libfwklo.a"
,
fwk_component_getFactory
},
{
"libucb1.a"
,
ucb_component_getFactory
},
{
"libucpfile1.a"
,
ucpfile_component_getFactory
},
{
NULL
,
NULL
}
};
for
(
int
i
=
0
;
pSym
==
NULL
&&
non_app_specific_map
[
i
].
lib
!=
NULL
;
++
i
)
{
if
(
rLibName
.
equalsAscii
(
non_app_specific_map
[
i
].
lib
)
)
pSym
=
(
oslGenericFunction
)
non_app_specific_map
[
i
].
component_getFactory_function
;
}
if
(
pSym
==
NULL
)
{
const
lib_to_component_mapping
*
map
=
lo_get_libmap
();
for
(
int
i
=
0
;
pSym
==
NULL
&&
map
[
i
].
lib
!=
NULL
;
++
i
)
{
if
(
rLibName
.
equalsAscii
(
map
[
i
].
lib
)
)
pSym
=
(
oslGenericFunction
)
map
[
i
].
component_getFactory_function
;
}
#if OSL_DEBUG_LEVEL > 1
OSL_TRACE
(
"attempting to load unknown library %s"
,
OUStringToOString
(
rLibName
,
RTL_TEXTENCODING_ASCII_US
).
getStr
()
);
if
(
pSym
==
NULL
)
OSL_TRACE
(
"attempting to load unknown library %s"
,
OUStringToOString
(
rLibName
,
RTL_TEXTENCODING_ASCII_US
).
getStr
()
);
#endif
}
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment