00001
00002
00003
00004
00005
00006
00007
00008
00009
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