Moved result check function to gphoto_result.i