[Xcb] char* in structs ;)
Jamey Sharp
jamey at minilop.net
Wed Jun 15 10:44:14 PDT 2005
On Wed, 2005-06-15 at 19:23 +0200, Vincent Torri wrote:
> On Wed, 15 Jun 2005, Jamey Sharp wrote:
> > In the current API, you can use this code (completely untested, but I
> > think it's right):
> >
> > char *host;
> > int display;
> > int fd;
> > XCBAuthInfo auth = { 0 };
> > XCBConnection *c;
> >
> > XCBParseDisplay(display_string, &host, &display, 0);
> > fd = XCBOpen(host, display);
> > XCBGetAuthInfo(fd, &auth);
> > c = XCBConnect(fd, &auth);
>
> Horror !! You haven't read my tutorial !!! It's in it !!! Shame on you !
Oops -- we both missed that. Sorry, Vincent. :-)
The tutorial has a bug in it though: you need to pass the display string
that you want as the first parameter to XCBParseDisplay, not 0.
--Jamey
More information about the xcb
mailing list