summaryrefslogtreecommitdiff
path: root/mysqlc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-17 10:53:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-17 11:43:53 +0100
commitfbfab3614df6ba2a547d872191bf21a511307f0a (patch)
tree5ca588b78154c9f802b6a99d734e3128f440bffc /mysqlc
parentaae97c958d7bf5fcadb3872a77fc2f11399d10ad (diff)
Keep using component_getImplementationEnvironment in extensions
...instead of relying on the implicit CPPU_CURRENT_LANGUAGE_BINDING_NAME convention. Keeping that convention an implementation detail makes it easier to do improvements in the future. (Theoretically, the bundled extension in mysqlc could be considered internal code and not adapted, but just be safe.) (cherry picked from commit fa2a7c1c95f78d20ed572091e12700fd4d852835) Conflicts: desktop/test/deployment/active/active_native.cxx Change-Id: Iae41a6e072dabc2bf7c1481ba6cfed61680edf37
Diffstat (limited to 'mysqlc')
-rw-r--r--mysqlc/source/mysqlc_services.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysqlc/source/mysqlc_services.cxx b/mysqlc/source/mysqlc_services.cxx
index af1cabeee937..0ffe9cdee778 100644
--- a/mysqlc/source/mysqlc_services.cxx
+++ b/mysqlc/source/mysqlc_services.cxx
@@ -22,6 +22,7 @@
#include <cppuhelper/factory.hxx>
#include <osl/diagnose.h>
#include <rtl/ustrbuf.hxx>
+#include <uno/lbnames.h>
using namespace connectivity::mysqlc;
using ::com::sun::star::uno::Reference;
@@ -102,6 +103,12 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(
};
/* }}} */
+extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL
+component_getImplementationEnvironment(
+ char const ** ppEnvTypeName, uno_Environment **)
+{
+ *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
+}
/*
* Local variables: