/home/coin/SVN-release/CoinAll-1.1.0/Ipopt/src/contrib/LinearSolverLoader/LibraryHandler.h

Go to the documentation of this file.
00001 /* Copyright (C) 2008 GAMS Development and others
00002  All Rights Reserved.
00003  This code is published under the Common Public License.
00004 
00005  $Id: LibraryHandler.h 341 2008-02-14 18:51:25Z stefan $
00006 
00007  Author: Stefan Vigerske
00008 
00009  inspired by optcc.h in gams i/o libs
00010 */
00011 
00012 #ifndef LIBRARYHANDLER_H_
00013 #define LIBRARYHANDLER_H_
00014 
00015 #include "IpoptConfig.h"
00016 
00017 #ifdef HAVE_WINDOWS_H
00018 # include <windows.h>
00019   typedef HINSTANCE soHandle_t;
00020 #else
00021 # ifdef HAVE_DLFCN_H
00022 #  include <unistd.h>
00023 #  include <dlfcn.h>
00024   typedef void *soHandle_t;
00025 # else
00026 #  define ERROR_LOADLIB
00027   typedef void *soHandle_t;
00028 # endif
00029 #endif
00030 
00037 soHandle_t LSL_loadLib(const char* libname, char* msgbuf, int msglen);
00038 
00043 int LSL_unloadLib(soHandle_t libhandle);
00044 
00045 #endif /*LIBRARYHANDLER_H_*/

Generated on Sun Nov 14 14:06:36 2010 for Coin-All by  doxygen 1.4.7