X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_util.c;h=93e180cae7772a07be55775c83d1d22c47e7c17a;hb=11c62f7d9d65c10c796c2199c73c8f167e53f234;hp=b1e93276becab468883525d5b6c67f20971813a6;hpb=e7576738c33e73fb4f29c1426c2ec49257564129;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_util.c b/src/xcb_util.c index b1e9327..93e180c 100644 --- a/src/xcb_util.c +++ b/src/xcb_util.c @@ -26,6 +26,7 @@ /* Utility functions implementable using only public APIs. */ #include +#include #include #include #include @@ -39,6 +40,7 @@ #include "xcb.h" #include "xcbext.h" +#include "xcbint.h" int XCBPopcount(CARD32 mask) { @@ -161,7 +163,7 @@ XCBConnection *XCBConnect(const char *displayname, int *screenp) if(fd == -1) return 0; - XCBGetAuthInfo(fd, &auth); + _xcb_get_auth_info(fd, &auth); c = XCBConnectToFD(fd, &auth); free(auth.name); free(auth.data); @@ -217,3 +219,8 @@ int XCBOpenUnix(const char *file) { return _xcb_open_unix(file); } + +int XCBGetAuthInfo(int fd, XCBAuthInfo *info) +{ + return _xcb_get_auth_info(fd, info); +}