guanaqo 1.0.0-alpha.25
Utilities for scientific software
Loading...
Searching...
No Matches
dl-flags.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file
4/// @ingroup dylib
5/// Flags wrapper for dynamic library loading.
6
7#include <guanaqo/export.h>
8
9namespace guanaqo {
10
11/// Flags to be passed to `dlopen`.
12/// @ingroup dylib
13struct GUANAQO_EXPORT DynamicLoadFlags {
14 /// `RTLD_GLOBAL` (true) or `RTLD_LOCAL` (false).
15 bool global = false;
16 /// `RTLD_LAZY` (true) or `RTLD_NOW` (false).
17 bool lazy = false;
18 /// `RTLD_NODELETE`
19 bool nodelete = true;
20 /// `RTLD_DEEPBIND`
21 bool deepbind = true;
22
23 operator int() const;
24};
25
26} // namespace guanaqo
Flags to be passed to dlopen.
Definition dl-flags.hpp:13
bool nodelete
RTLD_NODELETE
Definition dl-flags.hpp:19
bool global
RTLD_GLOBAL (true) or RTLD_LOCAL (false).
Definition dl-flags.hpp:15
bool lazy
RTLD_LAZY (true) or RTLD_NOW (false).
Definition dl-flags.hpp:17
bool deepbind
RTLD_DEEPBIND
Definition dl-flags.hpp:21