Ipopt 3.12.10

- Main Page
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
LibraryHandler.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 GAMS Development and others
2 All Rights Reserved.
3 This code is published under the Eclipse Public License.
4
5 $Id: LibraryHandler.h 2105 2012-06-12 13:22:30Z stefan $
6
7 Author: Stefan Vigerske
8
9 inspired by optcc.h in gams i/o libs
10 */
11
12 #ifndef LIBRARYHANDLER_H_
13 #define LIBRARYHANDLER_H_
14
15 #include "IpoptConfig.h"
16
17 #ifdef HAVE_WINDOWS_H
18 # include <windows.h>
19 typedef HINSTANCE soHandle_t;
20 #ifdef small
21 #undef small
22 #endif
23 #else
24 # ifdef HAVE_DLFCN_H
25 # include <unistd.h>
26 # include <dlfcn.h>
27 typedef void *soHandle_t;
28 # else
29 # define ERROR_LOADLIB
30 typedef void *soHandle_t;
31 # endif
32 #endif
33
40 soHandle_t LSL_loadLib(const char* libname, char* msgbuf, int msglen);
41
46 int LSL_unloadLib(soHandle_t libhandle);
47
48 #endif /*LIBRARYHANDLER_H_*/
LSL_unloadLib
int LSL_unloadLib(soHandle_t libhandle)
Unloads a shared library.
LSL_loadLib
soHandle_t LSL_loadLib(const char *libname, char *msgbuf, int msglen)
Loads a dynamically linked library.
IpoptConfig.h
soHandle_t
void * soHandle_t
Definition: LibraryHandler.h:27