-
Notifications
You must be signed in to change notification settings - Fork 13
Dynamic library loading
Finalspace edited this page May 29, 2026
·
1 revision
This category contains functions for loading dynamic libraries. More...
| Type | Name |
|---|---|
| struct |
fplDynamicLibraryHandle Stores the internal handle to a dynamic library. More... |
| union |
fplInternalDynamicLibraryHandle Stores the library handle for any platform. More... |
| Type | Name |
|---|---|
| fpl_platform_api bool |
fplDynamicLibraryLoad (const char *libraryFilePath, fplDynamicLibraryHandle *outHandle) Loads a dynamic library and returns if the load was successful or not. |
| fpl_platform_api void |
fplDynamicLibraryUnload (fplDynamicLibraryHandle *handle) Unloads the loaded library and resets the handle to zero. |
| fpl_platform_api void * |
fplGetDynamicLibraryProc (const fplDynamicLibraryHandle *handle, const char *name) Returns the dynamic library procedure address for the given procedure name. |
This category contains functions for loading dynamic libraries.
fpl_platform_api bool fplDynamicLibraryLoad ( const char * libraryFilePath, fplDynamicLibraryHandle * outHandle )Loads a dynamic library and returns if the load was successful or not.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | libraryFilePath | The path to the library with included file extension (.dll / .so). |
| [out] | outHandle | Reference to the output library handle fplDynamicLibraryHandle. |
Returns: Returns true when the library was loaded successfully, false otherwise.
See also: Loading a dynamic library
fpl_platform_api void fplDynamicLibraryUnload ( fplDynamicLibraryHandle * handle)Unloads the loaded library and resets the handle to zero.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in,out] | handle | Reference to the library handle fplDynamicLibraryHandle. |
See also: fplDynamicLibraryLoad
fpl_platform_api void * fplGetDynamicLibraryProc ( const fplDynamicLibraryHandle * handle, const char * name )Returns the dynamic library procedure address for the given procedure name.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | handle | Reference to the library handle fplDynamicLibraryHandle. |
| [in] | name | The name of the procedure. |
Returns: Returns the procedure address for the given procedure name, or
fpl_null when the procedure is not found or the library is not loaded.
See also: Getting a procedure address
- Assertion & Debug
- Atomic operations
- Audio functions
- Clipboard functions
- Console functions
- Constants
- Display/Monitor functions
- Dynamic library loading
- Error Handling
- Files/IO functions
- Function macros
- Hardware Infos
- Input types and functions
- Localization functions
- Logging
- Memory Macros
- Memory functions
- Operating system Infos
- Path functions
- Platform functions
- Session Infos
- Settings & Configurations
- Storage class identifiers
- String functions
- Threading and synchronizations routines
- Timing functions
- Video functions
- Window events
- Window functions
- fplARMCPUCapabilities
- fplAudioChannelMap
- fplAudioDeviceID
- fplAudioDeviceInfo
- fplAudioFormat
- fplAudioSettings
- fplColor32
- fplConditionVariable
- fplConsoleSettings
- fplCPUCapabilities
- fplCPUIDLeaf
- fplDateTime
- fplDateTimeCreationResult
- fplDateTimeResult
- fplDisplayInfo
- fplDisplayMode
- fplDynamicLibraryHandle
- fplEndianess
- fplEvent
- fplFileEntry
- fplFileHandle
- fplFilePermissions
- fplFileTimeStamps
- fplGamepadButton
- fplGamepadData
- fplGamepadEvent
- fplGamepadInfo
- fplGamepadInputBinding
- fplGamepadMapping
- fplGamepadSettings
- fplGamepadState
- fplGamepadStates
- fplGraphicsApiSettings
- fplImageSource
- fplInputBackendMask
- fplInputBackendSupport
- fplInputDevice
- fplInputDeviceGuid
- fplInputSettings
- fplInternalConditionVariable
- fplInternalDynamicLibraryHandle
- fplInternalFileEntryHandle
- fplInternalFileHandle
- fplInternalFileRootInfo
- fplInternalMutexHandle
- fplInternalSemaphoreHandle
- fplInternalSignalHandle
- fplInternalThreadHandle
- fplKeyboardEvent
- fplKeyboardState
- fplLogSettings
- fplLogWriter
- fplLogWriterConsole
- fplLogWriterCustom
- fplMemoryAllocationSettings
- fplMemoryBlock
- fplMemoryInfos
- fplMemorySettings
- fplMouseEvent
- fplMouseState
- fplMutexHandle
- fplOpenGLSettings
- fplOSVersionInfos
- fplSemaphoreHandle
- fplSettings
- fplSignalHandle
- fplSpecificAudioSettings
- fplThreadHandle
- fplThreadParameters
- fplTimestamp
- fplVersionInfo
- fplVideoBackBuffer
- fplVideoRect
- fplVideoRequirements
- fplVideoRequirementsVulkan
- fplVideoSettings
- fplVideoSurface
- fplVideoSurfaceOpenGL
- fplVideoSurfaceVulkan
- fplVideoWindow
- fplVulkanSettings
- fplWindowCallbacks
- fplWindowDropFiles
- fplWindowEvent
- fplWindowPosition
- fplWindowSettings
- fplWindowSize
- fplX86CPUCapabilities