Skip to main content
Version: Dev (main)

Dynamic Loading

Dynamic library load/unload helpers for the C API. More...

Functions Index​

static boolqar_installed_bin_folder (char *out, size_t capacity)

UTF-8 <InstallFolder>/bin of the installed QAROS. More...

static boolqar_is_library_loaded (void)

Check if the shared library is currently loaded. More...

static boolqar_library_load (const char *library_path)

Load the qar-streaming-c shared library for dynamic mode. More...

static voidqar_library_unload (void)

Unload the shared library previously loaded. More...

Description​

Dynamic library load/unload helpers for the C API.

Functions​

qar_installed_bin_folder()​

bool qar_installed_bin_folder (char * out, size_t capacity)
inline static

UTF-8 <InstallFolder>/bin of the installed QAROS.

Reads HKLM\SOFTWARE\Quaternar\QAROS value InstallFolder. Windows only; elsewhere it always returns false.

Parameters
out

Receives the NUL-terminated folder.

capacity

Size of out in bytes.

Returns

false when QAROS is not installed or out is too small.

Definition at line 10007 of file qar_streaming.h.

qar_is_library_loaded()​

bool qar_is_library_loaded (void)
inline static

Check if the shared library is currently loaded.

Definition at line 10163 of file qar_streaming.h.

qar_library_load()​

bool qar_library_load (const char * library_path)
inline static

Load the qar-streaming-c shared library for dynamic mode.

Parameters
library_path

NULL is the normal call: the one already loaded in the process, else the library beside the calling module, else the runtime of the QAROS instance QAR_INSTANCE names, else the installed QAROS, else one on PATH (see "Prefer dynamic loading" above for the full order). A non-NULL path names the library file itself, absolute or relative to the current working directory, and only that file is tried. The runtime's dependency libraries are resolved from the library's own folder and System32. UTF-8, like every path in this API (see Text encoding).

Returns

true on success; false, with a printed reason, when no runtime is found or the library fails to load. Call this before qar_library_init().

Definition at line 10125 of file qar_streaming.h.

qar_library_unload()​

void qar_library_unload (void)
inline static

Unload the shared library previously loaded.

Definition at line 10151 of file qar_streaming.h.


Generated via doxygen2docusaurus 2.2.1 by Doxygen 1.9.8.