Fixed extern keyword for callback