A simple c wrapper to use performSelector from Swift