Ipopt  3.12.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Typedefs | Functions
LibraryHandler.h File Reference
#include "IpoptConfig.h"
#include <unistd.h>
#include <dlfcn.h>

Go to the source code of this file.

Typedefs

typedef void * soHandle_t
 

Functions

soHandle_t LSL_loadLib (const char *libname, char *msgbuf, int msglen)
 Loads a dynamically linked library. More...
 
int LSL_unloadLib (soHandle_t libhandle)
 Unloads a shared library. More...
 

Typedef Documentation

typedef void* soHandle_t

Definition at line 27 of file LibraryHandler.h.

Function Documentation

soHandle_t LSL_loadLib ( const char *  libname,
char *  msgbuf,
int  msglen 
)

Loads a dynamically linked library.

Parameters
libnameThe name of the library to load.
msgbufA buffer to store an error message.
msglenLength of the message buffer.
Returns
Shared library handle, or NULL if failure.
int LSL_unloadLib ( soHandle_t  libhandle)

Unloads a shared library.

Parameters
libhandleHandle of shared library to unload.
Returns
Zero on success, nonzero on failure.