From: Brad B. <bba...@at...> - 2017-01-09 15:37:31
|
Hi, I am a new SWIG user and have a question about its use when dealing with callbacks from a C++ library. I have generated the bindings for the library APIs successfully. However there is one functionality that uses a callback function for async event handling. I want to use SWIG to create the APIs for Python and perhaps Go. So there are a couple of issues here, perhaps more that I don't know about yet: 1- Is there any support in SWIG that could help with this, or is callback handling a roll your own solution kind of thing 2- what is the general approach to this, if I want to support multiple languages from the library? How can the library support multiple languages above it in such a way as to avoid re-writing that part of the library for every new language binding? Thank you. |