# src/contrib/LinearSolverLoader/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.
int | LSL_unloadLib (soHandle_t libhandle)
| Unloads a shared library.

## 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:

  | libname | The name of the library to load.
  | msgbuf | A buffer to store an error message.
  | msglen | Length of the message buffer.

Returns:
  Shared library handle, or NULL if failure.

int LSL_unloadLib | ( | soHandle_t | libhandle | ) |

Unloads a shared library.

Parameters:

  | libhandle | Handle of shared library to unload.

Returns:
  Zero on success, nonzero on failure.

All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines