Info |
---|
Motivation: The loading of external dynamic plugins can be controlled during runtime with an environment variable, HDF5_PLUGIN_PRELOAD. The environment variable can control the loading of dynamic filters at runtime, but it will disable it for all running programs that access that variable using the library. H5PL_SET_LOADING_STATE controls the loading of external dynamic plugins during program execution. |
H5PL_SET_LOADING_STATE uses one argument to enable or disable individual plugins. The plugin_control_mask parameter is an encoded integer in which each bit controls a specific plugin or class of plugins. Bit positions allocated to date are listed in the “Plugin Type/Bit Position” table below. A plugin bit set to 0 (zero) prevents the use of the dynamic plugin corresponding to that bit position. A plugin bit set to 1 (one) allows the use of that dynamic plugin. All dynamic plugins can be enabled by setting plugin_control_mask to a negative value. A value of 0 (zero) will disable all dynamic plugins. H5PL_SET_LOADING_STATE inspects the HDF5_PLUGIN_PRELOAD environment variable every time it is called. If the environment variable is set to the special :: string, all dynamic plugins will be disabled. Note |
---|
The classes of plugins subject to programmatic control are specified in the H5PL_type_t ENUM. Since only dynamically loaded filter plugins are currently subject to programmatic control, only one plugin type is defined: Plugin Type | Bit Position |
---|
H5PL_TYPE_FILTER | 0 |
Additional values may be added to the H5PL_type_t ENUM as programmatic control is implemented for other plugin types. |
|