Embedding Julia and two-way communication with cpp code?

As far as I know, it is possible to embedd Julia in Cpp code and call Cpp libraries from Julia.
But if I embedd Julia and call it from Cpp, how can I callback some Cpp functions and methods on Cpp objects and pass results back to Julia?

I have created a small repo with questions based on the example from embedding tutorial:

1 Like