Thank you very much. Yes, I need to call this function from C.
For example, I need to add a callback function to the button of the UI system. The UI system is a c library. I will first store the pointers to rawProc and rawEnv and release them when they are not needed.