I am trying to write a function that adds a callback function to Calloop\'s event loop. The code works fine if it is simply pasted into a function where the function parameters