• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

/build/buildd/coinor-ipopt-3.8.3/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 1324 2008-09-16 14:19:26Z andreasw $
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 Sat Oct 16 2010 02:54:51 by  doxygen 1.7.1