Support SetSwapCallback() in XDK 5849