Sophie

Sophie

distrib > Mandriva > cooker > x86_64 > by-pkgid > f52692956c2b8f03919a5223e155b94e > files > 50

libxcb-doc-1.9-1.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>XCB: XCB Core API</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">XCB
   &#160;<span id="projectnumber">1.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">XCB Core API</div>  </div>
</div><!--header-->
<div class="contents">

<p>Core API of the XCB library.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structxcb__generic__iterator__t.html">xcb_generic_iterator_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generic iterator.  <a href="structxcb__generic__iterator__t.html#details">More...</a><br/></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structxcb__generic__reply__t.html">xcb_generic_reply_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generic reply.  <a href="structxcb__generic__reply__t.html#details">More...</a><br/></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structxcb__generic__event__t.html">xcb_generic_event_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generic event.  <a href="structxcb__generic__event__t.html#details">More...</a><br/></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structxcb__ge__event__t.html">xcb_ge_event_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">GE event.  <a href="structxcb__ge__event__t.html#details">More...</a><br/></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structxcb__generic__error__t.html">xcb_generic_error_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generic error.  <a href="structxcb__generic__error__t.html#details">More...</a><br/></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structxcb__void__cookie__t.html">xcb_void_cookie_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generic cookie.  <a href="structxcb__void__cookie__t.html#details">More...</a><br/></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structxcb__auth__info__t.html">xcb_auth_info_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Container for authorization information.  <a href="structxcb__auth__info__t.html#details">More...</a><br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga33a326c569db79d44ac7f50449cd41a9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga33a326c569db79d44ac7f50449cd41a9">X_PROTOCOL</a>&#160;&#160;&#160;11</td></tr>
<tr class="memitem:gaec218574c2dba2befb7b797b55d5b146"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#gaec218574c2dba2befb7b797b55d5b146">X_PROTOCOL_REVISION</a>&#160;&#160;&#160;0</td></tr>
<tr class="memitem:gae3ab23b2215dc45af366b61a84b40272"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#gae3ab23b2215dc45af366b61a84b40272">X_TCP_PORT</a>&#160;&#160;&#160;6000</td></tr>
<tr class="memitem:ga7a47582912cd48277ff17f215c312f4c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga7a47582912cd48277ff17f215c312f4c">XCB_CONN_ERROR</a>&#160;&#160;&#160;1</td></tr>
<tr class="memitem:ga93afaa298a155d2f4e4de15ded6715ba"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga93afaa298a155d2f4e4de15ded6715ba">XCB_CONN_CLOSED_EXT_NOTSUPPORTED</a>&#160;&#160;&#160;2</td></tr>
<tr class="memitem:ga661e062599c089444a296812b36e564f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga661e062599c089444a296812b36e564f">XCB_CONN_CLOSED_MEM_INSUFFICIENT</a>&#160;&#160;&#160;3</td></tr>
<tr class="memitem:ga5ca91232d9b5a5e5b9d67700667a9207"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga5ca91232d9b5a5e5b9d67700667a9207">XCB_CONN_CLOSED_REQ_LEN_EXCEED</a>&#160;&#160;&#160;4</td></tr>
<tr class="memitem:gafe764d320c5a53998b0b317f878e4d83"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#gafe764d320c5a53998b0b317f878e4d83">XCB_CONN_CLOSED_PARSE_ERR</a>&#160;&#160;&#160;5</td></tr>
<tr class="memitem:gad859bcb01442f2432417d5d1ce8cc566"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#gad859bcb01442f2432417d5d1ce8cc566">XCB_CONN_CLOSED_INVALID_SCREEN</a>&#160;&#160;&#160;6</td></tr>
<tr class="memitem:ga7a30f2a3be1abba1232db075a0f0876f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7a30f2a3be1abba1232db075a0f0876f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XCB_TYPE_PAD</b>(T, I)&#160;&#160;&#160;(-(I) &amp; (sizeof(T) &gt; 4 ? 3 : sizeof(T) - 1))</td></tr>
<tr class="memitem:gafa5402f36a6f6b5def0e98c4a452dc82"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#gafa5402f36a6f6b5def0e98c4a452dc82">XCB_NONE</a>&#160;&#160;&#160;0L</td></tr>
<tr class="memitem:gacfad5acd9f27e048614dce1f7ea69ed8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#gacfad5acd9f27e048614dce1f7ea69ed8">XCB_COPY_FROM_PARENT</a>&#160;&#160;&#160;0L</td></tr>
<tr class="memitem:ga3a6ff159310850f5e28b018192a4a0d0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga3a6ff159310850f5e28b018192a4a0d0">XCB_CURRENT_TIME</a>&#160;&#160;&#160;0L</td></tr>
<tr class="memitem:ga47e7b30cb867e921290ab333b88184dd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga47e7b30cb867e921290ab333b88184dd">XCB_NO_SYMBOL</a>&#160;&#160;&#160;0L</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga8af532123ce5fb1c75ded03a0d77691f"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structxcb__connection__t.html">xcb_connection_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga8af532123ce5fb1c75ded03a0d77691f">xcb_connection_t</a></td></tr>
<tr class="memdesc:ga8af532123ce5fb1c75ded03a0d77691f"><td class="mdescLeft">&#160;</td><td class="mdescRight">XCB Connection structure.  <a href="#ga8af532123ce5fb1c75ded03a0d77691f"></a><br/></td></tr>
<tr class="memitem:ga5c434ae83bd5822deb8e20ea517071b6"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structxcb__auth__info__t.html">xcb_auth_info_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga5c434ae83bd5822deb8e20ea517071b6">xcb_auth_info_t</a></td></tr>
<tr class="memdesc:ga5c434ae83bd5822deb8e20ea517071b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Container for authorization information.  <a href="#ga5c434ae83bd5822deb8e20ea517071b6"></a><br/></td></tr>
<tr class="memitem:ga8615b6e0d78ed5de111d9202530cebe9"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structxcb__extension__t.html">xcb_extension_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga8615b6e0d78ed5de111d9202530cebe9">xcb_extension_t</a></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga9361ead09eb756ba9cc8953c4569a789"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga9361ead09eb756ba9cc8953c4569a789">xcb_flush</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c)</td></tr>
<tr class="memdesc:ga9361ead09eb756ba9cc8953c4569a789"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forces any buffered output to be written to the server.  <a href="#ga9361ead09eb756ba9cc8953c4569a789"></a><br/></td></tr>
<tr class="memitem:gaac2771a6f8f77b574bcebcec3a7de977"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#gaac2771a6f8f77b574bcebcec3a7de977">xcb_get_maximum_request_length</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c)</td></tr>
<tr class="memdesc:gaac2771a6f8f77b574bcebcec3a7de977"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the maximum request length that this server accepts.  <a href="#gaac2771a6f8f77b574bcebcec3a7de977"></a><br/></td></tr>
<tr class="memitem:ga365edf27111a8dd4e1d2831f652315e7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga365edf27111a8dd4e1d2831f652315e7">xcb_prefetch_maximum_request_length</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c)</td></tr>
<tr class="memdesc:ga365edf27111a8dd4e1d2831f652315e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prefetch the maximum request length without blocking.  <a href="#ga365edf27111a8dd4e1d2831f652315e7"></a><br/></td></tr>
<tr class="memitem:ga1152db5668f718d1b3daf9b40712b0dd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structxcb__generic__event__t.html">xcb_generic_event_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga1152db5668f718d1b3daf9b40712b0dd">xcb_wait_for_event</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c)</td></tr>
<tr class="memdesc:ga1152db5668f718d1b3daf9b40712b0dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the next event or error from the server.  <a href="#ga1152db5668f718d1b3daf9b40712b0dd"></a><br/></td></tr>
<tr class="memitem:ga3289f98c49afa3aa56f84f741557a434"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structxcb__generic__event__t.html">xcb_generic_event_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga3289f98c49afa3aa56f84f741557a434">xcb_poll_for_event</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c)</td></tr>
<tr class="memdesc:ga3289f98c49afa3aa56f84f741557a434"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the next event or error from the server.  <a href="#ga3289f98c49afa3aa56f84f741557a434"></a><br/></td></tr>
<tr class="memitem:ga7d97b934a6cbbd3d45a6644f7d9e0c78"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structxcb__generic__event__t.html">xcb_generic_event_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga7d97b934a6cbbd3d45a6644f7d9e0c78">xcb_poll_for_queued_event</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c)</td></tr>
<tr class="memdesc:ga7d97b934a6cbbd3d45a6644f7d9e0c78"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the next event without reading from the connection.  <a href="#ga7d97b934a6cbbd3d45a6644f7d9e0c78"></a><br/></td></tr>
<tr class="memitem:ga3ee7f1ad9cf0a9f1716d5c22405598fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structxcb__generic__error__t.html">xcb_generic_error_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga3ee7f1ad9cf0a9f1716d5c22405598fc">xcb_request_check</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c, <a class="el" href="structxcb__void__cookie__t.html">xcb_void_cookie_t</a> cookie)</td></tr>
<tr class="memdesc:ga3ee7f1ad9cf0a9f1716d5c22405598fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the error for a request, or NULL if none can ever arrive.  <a href="#ga3ee7f1ad9cf0a9f1716d5c22405598fc"></a><br/></td></tr>
<tr class="memitem:gabb6bc06a4ee73b3b820847a02bd8bfcb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#gabb6bc06a4ee73b3b820847a02bd8bfcb">xcb_discard_reply</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c, unsigned int sequence)</td></tr>
<tr class="memdesc:gabb6bc06a4ee73b3b820847a02bd8bfcb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Discards the reply for a request.  <a href="#gabb6bc06a4ee73b3b820847a02bd8bfcb"></a><br/></td></tr>
<tr class="memitem:ga3cbee434e4859a00d685bbdf1e299b9e"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structxcb__query__extension__reply__t.html">xcb_query_extension_reply_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga3cbee434e4859a00d685bbdf1e299b9e">xcb_get_extension_data</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c, <a class="el" href="structxcb__extension__t.html">xcb_extension_t</a> *ext)</td></tr>
<tr class="memdesc:ga3cbee434e4859a00d685bbdf1e299b9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Caches reply information from QueryExtension requests.  <a href="#ga3cbee434e4859a00d685bbdf1e299b9e"></a><br/></td></tr>
<tr class="memitem:gaa3c0a602c213180792c2668f8056a324"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#gaa3c0a602c213180792c2668f8056a324">xcb_prefetch_extension_data</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c, <a class="el" href="structxcb__extension__t.html">xcb_extension_t</a> *ext)</td></tr>
<tr class="memdesc:gaa3c0a602c213180792c2668f8056a324"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prefetch of extension data into the extension cache.  <a href="#gaa3c0a602c213180792c2668f8056a324"></a><br/></td></tr>
<tr class="memitem:gafc379a27800bf735818a0760bd036321"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structxcb__setup__t.html">xcb_setup_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#gafc379a27800bf735818a0760bd036321">xcb_get_setup</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c)</td></tr>
<tr class="memdesc:gafc379a27800bf735818a0760bd036321"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access the data returned by the server.  <a href="#gafc379a27800bf735818a0760bd036321"></a><br/></td></tr>
<tr class="memitem:ga537e3cea89389382533957444eaa13fd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga537e3cea89389382533957444eaa13fd">xcb_get_file_descriptor</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c)</td></tr>
<tr class="memdesc:ga537e3cea89389382533957444eaa13fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access the file descriptor of the connection.  <a href="#ga537e3cea89389382533957444eaa13fd"></a><br/></td></tr>
<tr class="memitem:ga70a6bade94bd2824db552abcf5fbdbe3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga70a6bade94bd2824db552abcf5fbdbe3">xcb_connection_has_error</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c)</td></tr>
<tr class="memdesc:ga70a6bade94bd2824db552abcf5fbdbe3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test whether the connection has shut down due to a fatal error.  <a href="#ga70a6bade94bd2824db552abcf5fbdbe3"></a><br/></td></tr>
<tr class="memitem:ga6a5bf0156ada8c8863461073adefc7e2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga6a5bf0156ada8c8863461073adefc7e2">xcb_connect_to_fd</a> (int fd, <a class="el" href="structxcb__auth__info__t.html">xcb_auth_info_t</a> *auth_info)</td></tr>
<tr class="memdesc:ga6a5bf0156ada8c8863461073adefc7e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Connects to the X server.  <a href="#ga6a5bf0156ada8c8863461073adefc7e2"></a><br/></td></tr>
<tr class="memitem:gad562fe46469d419a81d5d9b20a659eaa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#gad562fe46469d419a81d5d9b20a659eaa">xcb_disconnect</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c)</td></tr>
<tr class="memdesc:gad562fe46469d419a81d5d9b20a659eaa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Closes the connection.  <a href="#gad562fe46469d419a81d5d9b20a659eaa"></a><br/></td></tr>
<tr class="memitem:gacdcc135342419d73b45e4f5499f26b20"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#gacdcc135342419d73b45e4f5499f26b20">xcb_parse_display</a> (const char *name, char **host, int *display, int *screen)</td></tr>
<tr class="memdesc:gacdcc135342419d73b45e4f5499f26b20"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parses a display string name in the form documented by X(7x).  <a href="#gacdcc135342419d73b45e4f5499f26b20"></a><br/></td></tr>
<tr class="memitem:ga094470586356d1764e69c9a1882966c3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga094470586356d1764e69c9a1882966c3">xcb_connect</a> (const char *displayname, int *screenp)</td></tr>
<tr class="memdesc:ga094470586356d1764e69c9a1882966c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Connects to the X server.  <a href="#ga094470586356d1764e69c9a1882966c3"></a><br/></td></tr>
<tr class="memitem:gaba02ef0d79d42c863842ae7eb8dd67a2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#gaba02ef0d79d42c863842ae7eb8dd67a2">xcb_connect_to_display_with_auth_info</a> (const char *display, <a class="el" href="structxcb__auth__info__t.html">xcb_auth_info_t</a> *auth, int *screen)</td></tr>
<tr class="memdesc:gaba02ef0d79d42c863842ae7eb8dd67a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Connects to the X server, using an authorization information.  <a href="#gaba02ef0d79d42c863842ae7eb8dd67a2"></a><br/></td></tr>
<tr class="memitem:ga3208afc306e3c564435a6ecbaddf80d1"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__XCB__Core__API.html#ga3208afc306e3c564435a6ecbaddf80d1">xcb_generate_id</a> (<a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *c)</td></tr>
<tr class="memdesc:ga3208afc306e3c564435a6ecbaddf80d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates an XID for a new object.  <a href="#ga3208afc306e3c564435a6ecbaddf80d1"></a><br/></td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<p>Core API of the XCB library. </p>
<h2>Macro Definition Documentation</h2>
<a class="anchor" id="ga33a326c569db79d44ac7f50449cd41a9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define X_PROTOCOL&#160;&#160;&#160;11</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Current protocol version </p>

</div>
</div>
<a class="anchor" id="gaec218574c2dba2befb7b797b55d5b146"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define X_PROTOCOL_REVISION&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Current minor version </p>

</div>
</div>
<a class="anchor" id="gae3ab23b2215dc45af366b61a84b40272"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define X_TCP_PORT&#160;&#160;&#160;6000</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>X_TCP_PORT + display number = server port for TCP transport </p>

</div>
</div>
<a class="anchor" id="ga93afaa298a155d2f4e4de15ded6715ba"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XCB_CONN_CLOSED_EXT_NOTSUPPORTED&#160;&#160;&#160;2</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>xcb connection shutdown because of extension not supported </p>

</div>
</div>
<a class="anchor" id="gad859bcb01442f2432417d5d1ce8cc566"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XCB_CONN_CLOSED_INVALID_SCREEN&#160;&#160;&#160;6</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Connection closed because the server does not have a screen matching the display. </p>

<p>Referenced by <a class="el" href="group__XCB__Core__API.html#gaba02ef0d79d42c863842ae7eb8dd67a2">xcb_connect_to_display_with_auth_info()</a>.</p>

</div>
</div>
<a class="anchor" id="ga661e062599c089444a296812b36e564f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XCB_CONN_CLOSED_MEM_INSUFFICIENT&#160;&#160;&#160;3</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>malloc(), calloc() and realloc() error upon failure, for eg ENOMEM </p>

<p>Referenced by <a class="el" href="group__XCB__Core__API.html#ga6a5bf0156ada8c8863461073adefc7e2">xcb_connect_to_fd()</a>.</p>

</div>
</div>
<a class="anchor" id="gafe764d320c5a53998b0b317f878e4d83"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XCB_CONN_CLOSED_PARSE_ERR&#160;&#160;&#160;5</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Connection closed, error during parsing display string. </p>

<p>Referenced by <a class="el" href="group__XCB__Core__API.html#gaba02ef0d79d42c863842ae7eb8dd67a2">xcb_connect_to_display_with_auth_info()</a>.</p>

</div>
</div>
<a class="anchor" id="ga5ca91232d9b5a5e5b9d67700667a9207"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XCB_CONN_CLOSED_REQ_LEN_EXCEED&#160;&#160;&#160;4</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Connection closed, exceeding request length that server accepts. </p>

</div>
</div>
<a class="anchor" id="ga7a47582912cd48277ff17f215c312f4c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XCB_CONN_ERROR&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>xcb connection errors because of socket, pipe and other stream errors. </p>

<p>Referenced by <a class="el" href="group__XCB__Core__API.html#gaba02ef0d79d42c863842ae7eb8dd67a2">xcb_connect_to_display_with_auth_info()</a>, and <a class="el" href="group__XCB__Core__API.html#ga6a5bf0156ada8c8863461073adefc7e2">xcb_connect_to_fd()</a>.</p>

</div>
</div>
<a class="anchor" id="gacfad5acd9f27e048614dce1f7ea69ed8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XCB_COPY_FROM_PARENT&#160;&#160;&#160;0L</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>XCB_COPY_FROM_PARENT can be used for many xcb_create_window parameters </p>

</div>
</div>
<a class="anchor" id="ga3a6ff159310850f5e28b018192a4a0d0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XCB_CURRENT_TIME&#160;&#160;&#160;0L</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>XCB_CURRENT_TIME can be used in most requests that take an xcb_timestamp_t </p>

</div>
</div>
<a class="anchor" id="ga47e7b30cb867e921290ab333b88184dd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XCB_NO_SYMBOL&#160;&#160;&#160;0L</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>XCB_NO_SYMBOL fills in unused entries in xcb_keysym_t tables </p>

</div>
</div>
<a class="anchor" id="gafa5402f36a6f6b5def0e98c4a452dc82"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XCB_NONE&#160;&#160;&#160;0L</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>XCB_NONE is the universal null resource or null atom parameter value for many core X requests </p>

</div>
</div>
<h2>Typedef Documentation</h2>
<a class="anchor" id="ga5c434ae83bd5822deb8e20ea517071b6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structxcb__auth__info__t.html">xcb_auth_info_t</a>  <a class="el" href="structxcb__auth__info__t.html">xcb_auth_info_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Container for authorization information. </p>
<p>A container for authorization information to be sent to the X server. </p>

</div>
</div>
<a class="anchor" id="ga8af532123ce5fb1c75ded03a0d77691f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> <a class="el" href="structxcb__connection__t.html">xcb_connection_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>XCB Connection structure. </p>
<p>A structure that contain all data that XCB needs to communicate with an X server.Opaque structure containing all data that XCB needs to communicate with an X server. </p>

</div>
</div>
<a class="anchor" id="ga8615b6e0d78ed5de111d9202530cebe9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structxcb__extension__t.html">xcb_extension_t</a> <a class="el" href="structxcb__extension__t.html">xcb_extension_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Opaque structure used as key for xcb_get_extension_data_t. </p>

</div>
</div>
<h2>Function Documentation</h2>
<a class="anchor" id="ga094470586356d1764e69c9a1882966c3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a>* xcb_connect </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>displayname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>screenp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Connects to the X server. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">displayname,:</td><td>The name of the display. </td></tr>
    <tr><td class="paramname">screenp,:</td><td>A pointer to a preferred screen number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A newly allocated <a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> structure.</dd></dl>
<p>Connects to the X server specified by <code>displayname</code>. If <code>displayname</code> is <code>NULL</code>, uses the value of the DISPLAY environment variable. If a particular screen on that server is preferred, the int pointed to by <code>screenp</code> (if not <code>NULL</code>) will be set to that screen; otherwise the screen will be set to 0. </p>

<p>References <a class="el" href="group__XCB__Core__API.html#gaba02ef0d79d42c863842ae7eb8dd67a2">xcb_connect_to_display_with_auth_info()</a>.</p>

</div>
</div>
<a class="anchor" id="gaba02ef0d79d42c863842ae7eb8dd67a2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a>* xcb_connect_to_display_with_auth_info </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>display</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structxcb__auth__info__t.html">xcb_auth_info_t</a> *&#160;</td>
          <td class="paramname"><em>auth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>screen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Connects to the X server, using an authorization information. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">display,:</td><td>The name of the display. </td></tr>
    <tr><td class="paramname">auth,:</td><td>The authorization information. </td></tr>
    <tr><td class="paramname">screen,:</td><td>A pointer to a preferred screen number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A newly allocated <a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> structure.</dd></dl>
<p>Connects to the X server specified by <code>displayname</code>, using the authorization <code>auth</code>. If a particular screen on that server is preferred, the int pointed to by <code>screenp</code> (if not <code>NULL</code>) will be set to that screen; otherwise <code>screenp</code> will be set to 0. </p>

<p>References <a class="el" href="structxcb__auth__info__t.html#a115f8ba8e337562e9f7ba90fc86dd8f2">xcb_auth_info_t::data</a>, <a class="el" href="structxcb__auth__info__t.html#a8dcfcabe85588b0fb45de36a10679c1b">xcb_auth_info_t::name</a>, <a class="el" href="group__XCB__Core__API.html#gad859bcb01442f2432417d5d1ce8cc566">XCB_CONN_CLOSED_INVALID_SCREEN</a>, <a class="el" href="group__XCB__Core__API.html#gafe764d320c5a53998b0b317f878e4d83">XCB_CONN_CLOSED_PARSE_ERR</a>, <a class="el" href="group__XCB__Core__API.html#ga7a47582912cd48277ff17f215c312f4c">XCB_CONN_ERROR</a>, <a class="el" href="group__XCB__Core__API.html#ga6a5bf0156ada8c8863461073adefc7e2">xcb_connect_to_fd()</a>, and <a class="el" href="group__XCB__Core__API.html#gad562fe46469d419a81d5d9b20a659eaa">xcb_disconnect()</a>.</p>

<p>Referenced by <a class="el" href="group__XCB__Core__API.html#ga094470586356d1764e69c9a1882966c3">xcb_connect()</a>.</p>

</div>
</div>
<a class="anchor" id="ga6a5bf0156ada8c8863461073adefc7e2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a>* xcb_connect_to_fd </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structxcb__auth__info__t.html">xcb_auth_info_t</a> *&#160;</td>
          <td class="paramname"><em>auth_info</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Connects to the X server. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fd,:</td><td>The file descriptor. </td></tr>
    <tr><td class="paramname">auth_info,:</td><td>Authentication data. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A newly allocated <a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> structure.</dd></dl>
<p>Connects to an X server, given the open socket <code>fd</code> and the <a class="el" href="structxcb__auth__info__t.html" title="Container for authorization information.">xcb_auth_info_t</a> <code>auth_info</code>. The file descriptor <code>fd</code> is bidirectionally connected to an X server. If the connection should be unauthenticated, <code>auth_info</code> must be <code>NULL</code>. </p>

<p>References <a class="el" href="group__XCB__Core__API.html#ga661e062599c089444a296812b36e564f">XCB_CONN_CLOSED_MEM_INSUFFICIENT</a>, <a class="el" href="group__XCB__Core__API.html#ga7a47582912cd48277ff17f215c312f4c">XCB_CONN_ERROR</a>, and <a class="el" href="group__XCB__Core__API.html#gad562fe46469d419a81d5d9b20a659eaa">xcb_disconnect()</a>.</p>

<p>Referenced by <a class="el" href="group__XCB__Core__API.html#gaba02ef0d79d42c863842ae7eb8dd67a2">xcb_connect_to_display_with_auth_info()</a>.</p>

</div>
</div>
<a class="anchor" id="ga70a6bade94bd2824db552abcf5fbdbe3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int xcb_connection_has_error </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test whether the connection has shut down due to a fatal error. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>&gt; 0 if the connection is in an error state; 0 otherwise.</dd></dl>
<p>Some errors that occur in the context of an <a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> are unrecoverable. When such an error occurs, the connection is shut down and further operations on the <a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> have no effect.</p>
<dl class="section return"><dt>Returns</dt><dd>XCB_CONN_ERROR, because of socket errors, pipe errors or other stream errors. </dd>
<dd>
XCB_CONN_CLOSED_EXT_NOTSUPPORTED, when extension not supported. </dd>
<dd>
XCB_CONN_CLOSED_MEM_INSUFFICIENT, when memory not available. </dd>
<dd>
XCB_CONN_CLOSED_REQ_LEN_EXCEED, exceeding request length that server accepts. </dd>
<dd>
XCB_CONN_CLOSED_PARSE_ERR, error during parsing display string. </dd>
<dd>
XCB_CONN_CLOSED_INVALID_SCREEN, because the server does not have a screen matching the display. </dd></dl>

</div>
</div>
<a class="anchor" id="gabb6bc06a4ee73b3b820847a02bd8bfcb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xcb_discard_reply </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>sequence</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Discards the reply for a request. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection to the X server. </td></tr>
    <tr><td class="paramname">sequence,:</td><td>The request sequence number from a cookie.</td></tr>
  </table>
  </dd>
</dl>
<p>Discards the reply for a request. Additionally, any error generated by the request is also discarded (unless it was an _unchecked request and the error has already arrived).</p>
<p>This function will not block even if the reply is not yet available.</p>
<p>Note that the sequence really does have to come from an xcb cookie; this function is not designed to operate on socket-handoff replies. </p>

</div>
</div>
<a class="anchor" id="gad562fe46469d419a81d5d9b20a659eaa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xcb_disconnect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Closes the connection. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection.</td></tr>
  </table>
  </dd>
</dl>
<p>Closes the file descriptor and frees all memory associated with the connection <code>c</code>. </p>

<p>Referenced by <a class="el" href="group__XCB__Core__API.html#gaba02ef0d79d42c863842ae7eb8dd67a2">xcb_connect_to_display_with_auth_info()</a>, and <a class="el" href="group__XCB__Core__API.html#ga6a5bf0156ada8c8863461073adefc7e2">xcb_connect_to_fd()</a>.</p>

</div>
</div>
<a class="anchor" id="ga9361ead09eb756ba9cc8953c4569a789"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int xcb_flush </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Forces any buffered output to be written to the server. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection to the X server. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>&gt; <code>0</code> on success, &lt;= <code>0</code> otherwise.</dd></dl>
<p>Forces any buffered output to be written to the server. Blocks until the write is complete. </p>

</div>
</div>
<a class="anchor" id="ga3208afc306e3c564435a6ecbaddf80d1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t xcb_generate_id </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allocates an XID for a new object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A newly allocated XID.</dd></dl>
<p>Allocates an XID for a new object. Typically used just prior to various object creation functions, such as xcb_create_window. </p>

<p>References <a class="el" href="group__XCB__Core__API.html#ga3cbee434e4859a00d685bbdf1e299b9e">xcb_get_extension_data()</a>, <a class="el" href="group__XCB__XCMisc__API.html#ga3f7541e960964c5a16e4c6b54711c905">xcb_xc_misc_get_xid_range()</a>, and <a class="el" href="group__XCB__XCMisc__API.html#ga268077d39aa8bde898411ee3b8766018">xcb_xc_misc_get_xid_range_reply()</a>.</p>

</div>
</div>
<a class="anchor" id="ga3cbee434e4859a00d685bbdf1e299b9e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structxcb__query__extension__reply__t.html">xcb_query_extension_reply_t</a>* xcb_get_extension_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structxcb__extension__t.html">xcb_extension_t</a> *&#160;</td>
          <td class="paramname"><em>ext</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Caches reply information from QueryExtension requests. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection. </td></tr>
    <tr><td class="paramname">ext,:</td><td>The extension data. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the <a class="el" href="structxcb__query__extension__reply__t.html" title="xcb_query_extension_reply_t">xcb_query_extension_reply_t</a> for the extension.</dd></dl>
<p>This function is the primary interface to the "extension cache", which caches reply information from QueryExtension requests. Invoking this function may cause a call to xcb_query_extension to retrieve extension information from the server, and may block until extension data is received from the server.</p>
<p>The result must not be freed. This storage is managed by the cache itself. </p>

<p>References <a class="el" href="group__XCB____API.html#ga96978d012dbd2bbc2816ee9e2bc4807f">xcb_query_extension_reply()</a>.</p>

<p>Referenced by <a class="el" href="group__XCB__Core__API.html#ga3208afc306e3c564435a6ecbaddf80d1">xcb_generate_id()</a>, and <a class="el" href="group__XCB__Core__API.html#ga365edf27111a8dd4e1d2831f652315e7">xcb_prefetch_maximum_request_length()</a>.</p>

</div>
</div>
<a class="anchor" id="ga537e3cea89389382533957444eaa13fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int xcb_get_file_descriptor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Access the file descriptor of the connection. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The file descriptor.</dd></dl>
<p>Accessor for the file descriptor that was passed to the xcb_connect_to_fd call that returned <code>c</code>. </p>

</div>
</div>
<a class="anchor" id="gaac2771a6f8f77b574bcebcec3a7de977"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t xcb_get_maximum_request_length </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the maximum request length that this server accepts. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection to the X server. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The maximum request length field.</dd></dl>
<p>In the absence of the BIG-REQUESTS extension, returns the maximum request length field from the connection setup data, which may be as much as 65535. If the server supports BIG-REQUESTS, then the maximum request length field from the reply to the BigRequestsEnable request will be returned instead.</p>
<p>Note that this length is measured in four-byte units, making the theoretical maximum lengths roughly 256kB without BIG-REQUESTS and 16GB with. </p>

<p>References <a class="el" href="group__XCB__BigRequests__API.html#ga3b29dd51a194c5168c527dc65d8b3b78">xcb_big_requests_enable_reply()</a>, and <a class="el" href="group__XCB__Core__API.html#ga365edf27111a8dd4e1d2831f652315e7">xcb_prefetch_maximum_request_length()</a>.</p>

</div>
</div>
<a class="anchor" id="gafc379a27800bf735818a0760bd036321"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structxcb__setup__t.html">xcb_setup_t</a>* xcb_get_setup </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Access the data returned by the server. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to an <a class="el" href="structxcb__setup__t.html" title="xcb_setup_t">xcb_setup_t</a> structure.</dd></dl>
<p>Accessor for the data returned by the server when the <a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> was initialized. This data includes</p>
<ul>
<li>the server's required format for images,</li>
<li>a list of available visuals,</li>
<li>a list of available screens,</li>
<li>the server's maximum request length (in the absence of the BIG-REQUESTS extension),</li>
<li>and other assorted information.</li>
</ul>
<p>See the X protocol specification for more details.</p>
<p>The result must not be freed. </p>

</div>
</div>
<a class="anchor" id="gacdcc135342419d73b45e4f5499f26b20"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int xcb_parse_display </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>host</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>display</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>screen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Parses a display string name in the form documented by X(7x). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name,:</td><td>The name of the display. </td></tr>
    <tr><td class="paramname">host,:</td><td>A pointer to a malloc'd copy of the hostname. </td></tr>
    <tr><td class="paramname">display,:</td><td>A pointer to the display number. </td></tr>
    <tr><td class="paramname">screen,:</td><td>A pointer to the screen number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on failure, non 0 otherwise.</dd></dl>
<p>Parses the display string name <code>display_name</code> in the form documented by X(7x). Has no side effects on failure. If <code>displayname</code> is <code>NULL</code> or empty, it uses the environment variable DISPLAY. <code>hostp</code> is a pointer to a newly allocated string that contain the host name. <code>displayp</code> is set to the display number and <code>screenp</code> to the preferred screen number. <code>screenp</code> can be <code>NULL</code>. If <code>displayname</code> does not contain a screen number, it is set to <code>0</code>. </p>

</div>
</div>
<a class="anchor" id="ga3289f98c49afa3aa56f84f741557a434"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structxcb__generic__event__t.html">xcb_generic_event_t</a>* xcb_poll_for_event </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the next event or error from the server. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection to the X server. error status of the operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The next event from the server.</dd></dl>
<p>Returns the next event or error from the server, if one is available, or returns <code>NULL</code> otherwise. If no event is available, that might be because an I/O error like connection close occurred while attempting to read the next event, in which case the connection is shut down when this function returns. </p>

</div>
</div>
<a class="anchor" id="ga7d97b934a6cbbd3d45a6644f7d9e0c78"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structxcb__generic__event__t.html">xcb_generic_event_t</a>* xcb_poll_for_queued_event </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the next event without reading from the connection. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection to the X server. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The next already queued event from the server.</dd></dl>
<p>This is a version of xcb_poll_for_event that only examines the event queue for new events. The function doesn't try to read new events from the connection if no queued events are found.</p>
<p>This function is useful for callers that know in advance that all interesting events have already been read from the connection. For example, callers might use xcb_wait_for_reply and be interested only of events that preceded a specific reply. </p>

</div>
</div>
<a class="anchor" id="gaa3c0a602c213180792c2668f8056a324"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xcb_prefetch_extension_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structxcb__extension__t.html">xcb_extension_t</a> *&#160;</td>
          <td class="paramname"><em>ext</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Prefetch of extension data into the extension cache. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection. </td></tr>
    <tr><td class="paramname">ext,:</td><td>The extension data.</td></tr>
  </table>
  </dd>
</dl>
<p>This function allows a "prefetch" of extension data into the extension cache. Invoking the function may cause a call to xcb_query_extension, but will not block waiting for the reply. xcb_get_extension_data will return the prefetched data after possibly blocking while it is retrieved. </p>

</div>
</div>
<a class="anchor" id="ga365edf27111a8dd4e1d2831f652315e7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xcb_prefetch_maximum_request_length </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Prefetch the maximum request length without blocking. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection to the X server.</td></tr>
  </table>
  </dd>
</dl>
<p>Without blocking, does as much work as possible toward computing the maximum request length accepted by the X server.</p>
<p>Invoking this function may cause a call to xcb_big_requests_enable, but will not block waiting for the reply. xcb_get_maximum_request_length will return the prefetched data after possibly blocking while the reply is retrieved.</p>
<p>Note that in order for this function to be fully non-blocking, the application must previously have called xcb_prefetch_extension_data(c, &amp;xcb_big_requests_id) and the reply must have already arrived. </p>

<p>References <a class="el" href="group__XCB__BigRequests__API.html#ga127f5654f2a302929d684367f1ba8b01">xcb_big_requests_enable()</a>, and <a class="el" href="group__XCB__Core__API.html#ga3cbee434e4859a00d685bbdf1e299b9e">xcb_get_extension_data()</a>.</p>

<p>Referenced by <a class="el" href="group__XCB__Core__API.html#gaac2771a6f8f77b574bcebcec3a7de977">xcb_get_maximum_request_length()</a>.</p>

</div>
</div>
<a class="anchor" id="ga3ee7f1ad9cf0a9f1716d5c22405598fc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structxcb__generic__error__t.html">xcb_generic_error_t</a>* xcb_request_check </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structxcb__void__cookie__t.html">xcb_void_cookie_t</a>&#160;</td>
          <td class="paramname"><em>cookie</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the error for a request, or NULL if none can ever arrive. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection to the X server. </td></tr>
    <tr><td class="paramname">cookie,:</td><td>The request cookie. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The error for the request, or NULL if none can ever arrive.</dd></dl>
<p>The <a class="el" href="structxcb__void__cookie__t.html" title="Generic cookie.">xcb_void_cookie_t</a> cookie supplied to this function must have resulted from a call to xcb_[request_name]_checked(). This function will block until one of two conditions happens. If an error is received, it will be returned. If a reply to a subsequent request has already arrived, no error can arrive for this request, so this function will return NULL.</p>
<p>Note that this function will perform a sync if needed to ensure that the sequence number will advance beyond that provided in cookie; this is a convenience to avoid races in determining whether the sync is needed. </p>

<p>References <a class="el" href="structxcb__void__cookie__t.html#af04f2b3abfc40ac8c7607f6b356548ba">xcb_void_cookie_t::sequence</a>.</p>

</div>
</div>
<a class="anchor" id="ga1152db5668f718d1b3daf9b40712b0dd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structxcb__generic__event__t.html">xcb_generic_event_t</a>* xcb_wait_for_event </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structxcb__connection__t.html">xcb_connection_t</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the next event or error from the server. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c,:</td><td>The connection to the X server. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The next event from the server.</dd></dl>
<p>Returns the next event or error from the server, or returns null in the event of an I/O error. Blocks until either an event or error arrive, or an I/O error occurs. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Oct 22 2012 22:46:50 for XCB by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>