Kaydet (Commit) f09f52e4 authored tarafından Tor Lillqvist's avatar Tor Lillqvist Kaydeden (comit) Tor Lillqvist

Need also uno_ext_getMapping for Java when DISABLE_DYNLOADING

Change-Id: I65f09e54c80df4e96e24548692eeb3a57e1de517
üst e5045bea
...@@ -474,6 +474,10 @@ void SAL_CALL uno_initEnvironment( uno_Environment * java_env ) ...@@ -474,6 +474,10 @@ void SAL_CALL uno_initEnvironment( uno_Environment * java_env )
machine->acquire(); machine->acquire();
} }
#ifdef DISABLE_DYNLOADING
#define uno_ext_getMapping java_uno_ext_getMapping
#endif
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void SAL_CALL uno_ext_getMapping( void SAL_CALL uno_ext_getMapping(
uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo ) uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo )
......
...@@ -193,6 +193,16 @@ void SAL_CALL CPPU_ENV_uno_ext_getMapping( ...@@ -193,6 +193,16 @@ void SAL_CALL CPPU_ENV_uno_ext_getMapping(
struct _uno_Environment * pFrom, struct _uno_Environment * pFrom,
struct _uno_Environment * pTo ) struct _uno_Environment * pTo )
SAL_THROW_EXTERN_C(); SAL_THROW_EXTERN_C();
#ifdef SOLAR_JAVA
/* This is the uno_ext_getMapping function in the Java/UNO bridge */
void SAL_CALL java_uno_ext_getMapping(
struct _uno_Mapping ** ppMapping,
struct _uno_Environment * pFrom,
struct _uno_Environment * pTo )
SAL_THROW_EXTERN_C();
#endif
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -329,6 +329,11 @@ static uno_ext_getMappingFunc selectMapFunc( const OUString & rBridgeName ) ...@@ -329,6 +329,11 @@ static uno_ext_getMappingFunc selectMapFunc( const OUString & rBridgeName )
{ {
if (rBridgeName.equalsAscii( CPPU_CURRENT_LANGUAGE_BINDING_NAME "_uno" )) if (rBridgeName.equalsAscii( CPPU_CURRENT_LANGUAGE_BINDING_NAME "_uno" ))
return CPPU_ENV_uno_ext_getMapping; return CPPU_ENV_uno_ext_getMapping;
#ifdef SOLAR_JAVA
if (rBridgeName.equalsAscii( "java" "_uno" ))
return java_uno_ext_getMapping;
#endif
#if 0 #if 0
// I don't think the affine or log bridges will be needed on any // I don't think the affine or log bridges will be needed on any
// DISABLE_DYNLOADING platform (iOS at least, possibly Android), but if // DISABLE_DYNLOADING platform (iOS at least, possibly Android), but if
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment