- if(!XCBParseDisplay(displayname, &host, &display, screenp))
- return 0;
- fd = _xcb_open(host, display);
- free(host);
- if(fd == -1)
- return 0;
-
- return XCBConnectToFD(fd, auth);
-}
-
-/* backwards compatible interfaces: remove before 1.0 release */
-int XCBSync(XCBConnection *c, XCBGenericError **e)
-{
- XCBGetInputFocusRep *reply = XCBGetInputFocusReply(c, XCBGetInputFocus(c), e);
- free(reply);
- return reply != 0;
-}
-
-XCBConnection *XCBConnectBasic()
-{
- XCBConnection *c = XCBConnect(0, 0);
- if(c)
- return c;
- perror("XCBConnect");
- abort();
-}