return 0; /* Unknown authorization type */
}
-int XCBGetAuthInfo(int fd, XCBAuthInfo *info)
+int _xcb_get_auth_info(int fd, XCBAuthInfo *info)
{
/* code adapted from Xlib/ConnDis.c, xtrans/Xtranssocket.c,
xtrans/Xtransutils.c */
#include "xcb.h"
#include "xcbext.h"
+#include "xcbint.h"
int XCBPopcount(CARD32 mask)
{
if(fd == -1)
return 0;
- XCBGetAuthInfo(fd, &auth);
+ _xcb_get_auth_info(fd, &auth);
c = XCBConnectToFD(fd, &auth);
free(auth.name);
free(auth.data);
{
return _xcb_open_unix(file);
}
+
+int XCBGetAuthInfo(int fd, XCBAuthInfo *info)
+{
+ return _xcb_get_auth_info(fd, info);
+}
int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count);
+
+/* xcb_auth.c */
+
+int _xcb_get_auth_info(int fd, XCBAuthInfo *info);
+
#ifdef GCC_HAS_VISIBILITY
#pragma GCC visibility pop
#endif