C++ API for scripts

For advanced scripts there is pySiril, which is written in Python. However, since Siril is written in C/C++, is there a way to get similar functionality of the pySiril library, but using C++?

Hello, SIril can be built as a library, but it’s undocumented and the interface is made for internal usage, it doesn’t have a nice API.
Calling existing commands with it is not too hard, basically you could pass the command strings to it and run them if you are careful with threads. For that you may look at src/core/command_line_processor.c at the loop of execute_script() that contains parse_line() and execute_command() and others.