I have a Linux C++ dynamic library, which is required to pass a compound structure to python, and receive result structure from python to be transferred up to caller application.
To get the python interpreter "alive" after library API function returns back to caller application, I decided to use singleton class (using getInstance...)
For C/Python API I'm (trying to...) using pybind11 embedded module mechanism
Question is how to connect the embedded module within the singleton class, simply meaning how to invoke it from there (also with passed arguments)?
Looked at "calling-embedded-function-in-class-method-using-pybind11", but it don't answer my question