[Xcb] Reply Buffering Question

Eamon Walsh ewalsh at tycho.nsa.gov
Fri Nov 16 15:17:37 PST 2007


I'm assuming that I can't do something like the following:

  iterator = xcb_input_list_input_devices_devices_iterator(reply);
  while (iterator.rem) {

    cookie = xcb_foo_request(conn);

    error = xcb_request_check(conn, cookie);
    if (error)
       ...

    xcb_input_deviceinfo_next(&iterator);
  }



Because the reply buffer used by the iterator will get trashed by the 
calls inside the loop.

Is this a correct assumption, or does XCB do internal copying that would 
make this work?  Thanks,


-- 
Eamon Walsh <ewalsh at tycho.nsa.gov>
National Security Agency



More information about the Xcb mailing list