pdidev / pdi

The PDI Data Interface
https://pdi.dev
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Provide a mechanism to deactivate PDI on demand #438

Open jbigot opened 1 year ago

jbigot commented 1 year ago

In GitLab by @fxmordant on Sep 25, 2023, 15:54

In certain cases, users may want to temporarily deactivate PDI's functionality at runtime without modifying the existing code. Currently, there is no straightforward way to achieve this.

To address this, a proposed solution is to include a separate header file (e.g. pdi_deactivation.h) that would redefine the PDI API with empty functions, disabling PDI's operation while maintaining valid syntax. Users would only need to add this header file when they wish to temporarily deactivate PDI.