Remove last deprecation warning.

This commit is contained in:
Ian Osgood 2006-03-13 10:36:13 -08:00
parent d8de2c7c2a
commit be1302b6ef
3 changed files with 13 additions and 2 deletions

View File

@ -208,7 +208,7 @@ static int compute_auth(XCBAuthInfo *info, Xauth *authptr, struct sockaddr *sock
return 0; /* Unknown authorization type */ 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, /* code adapted from Xlib/ConnDis.c, xtrans/Xtranssocket.c,
xtrans/Xtransutils.c */ xtrans/Xtransutils.c */

View File

@ -40,6 +40,7 @@
#include "xcb.h" #include "xcb.h"
#include "xcbext.h" #include "xcbext.h"
#include "xcbint.h"
int XCBPopcount(CARD32 mask) int XCBPopcount(CARD32 mask)
{ {
@ -162,7 +163,7 @@ XCBConnection *XCBConnect(const char *displayname, int *screenp)
if(fd == -1) if(fd == -1)
return 0; return 0;
XCBGetAuthInfo(fd, &auth); _xcb_get_auth_info(fd, &auth);
c = XCBConnectToFD(fd, &auth); c = XCBConnectToFD(fd, &auth);
free(auth.name); free(auth.name);
free(auth.data); free(auth.data);
@ -218,3 +219,8 @@ int XCBOpenUnix(const char *file)
{ {
return _xcb_open_unix(file); return _xcb_open_unix(file);
} }
int XCBGetAuthInfo(int fd, XCBAuthInfo *info)
{
return _xcb_get_auth_info(fd, info);
}

View File

@ -156,6 +156,11 @@ struct XCBConnection {
int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count); 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 #ifdef GCC_HAS_VISIBILITY
#pragma GCC visibility pop #pragma GCC visibility pop
#endif #endif