Adds sdl main api