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.
This commit is contained in:
Vladimir Glazounov
2007-10-15 11:20:01 +00:00
parent 6bf52bc920
commit 0fbcb954c3

View File

@@ -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