Xlib based API