summaryrefslogtreecommitdiff
path: root/cppu/source
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-10-15 11:20:01 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-10-15 11:20:01 +0000
commit0fbcb954c3fc52a0a5301413c3b952022145ecbd (patch)
tree77191c7ca73ed6e7201b2a290c56e11b0b9d0ac9 /cppu/source
parent6bf52bc9202c92d01a0b62fbcff8016b64cb66ec (diff)
INTEGRATION: CWS sb71 (1.1.2); FILE ADDED
2007/06/20 12:49:40 sb 1.1.2.1: #i75466# Unlike Solaris and Linux, Mac OS X dlopen does not search for file next to the library calling dlopen if file does not contain slashes (you have to prefix file with "@loader_path/" for that to work on Mac OS X); refactored accordingly.
Diffstat (limited to 'cppu/source')
-rw-r--r--cppu/source/uno/loadmodule.hxx64
1 files changed, 64 insertions, 0 deletions
diff --git a/cppu/source/uno/loadmodule.hxx b/cppu/source/uno/loadmodule.hxx
new file mode 100644
index 000000000000..47cb9f0ec494
--- /dev/null
+++ b/cppu/source/uno/loadmodule.hxx
@@ -0,0 +1,64 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: loadmodule.hxx,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: vg $ $Date: 2007-10-15 12:20:01 $
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2007 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ ************************************************************************/
+
+#ifndef INCLUDED_CPPU_SOURCE_UNO_CREATEMODULENAME_HXX
+#define INCLUDED_CPPU_SOURCE_UNO_CREATEMODULENAME_HXX
+
+#ifndef _SAL_CONFIG_H_
+#include "sal/config.h"
+#endif
+
+#ifndef _OSL_MODULE_H_
+#include "osl/module.h"
+#endif
+
+namespace rtl { class OUString; }
+
+namespace cppu { namespace detail {
+
+/** Load a module.
+
+ @param name
+ the nucleus of a module name (without any "lib...so", ".dll", etc.
+ decoration, and without a path).
+
+ @return
+ the handle returned by osl_loadModule.
+*/
+::oslModule loadModule(::rtl::OUString const & name);
+
+} }
+
+#endif