<dlclass="section return"><dt>Returns</dt><dd>the maximum number of characters in a JACK client name including the final NULL character. This value is a constant. </dd></dl>
<p>Open an external client session with a JACK server. This interface is more complex but more powerful than <aclass="el" href="group__ClientFunctions.html#ga97482adad8116b76635a63f646a2d2f5">jack_client_new()</a>. With it, clients may choose which of several servers to connect, and control whether and how to start the server automatically, if it was not already running. There is also an option for JACK to generate a unique client name, when necessary.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">client_name</td><td>of at most <aclass="el" href="group__ClientFunctions.html#gab8b16ee616207532d0585d04a0bd1d60">jack_client_name_size()</a> characters. The name scope is local to each server. Unless forbidden by the <aclass="el" href="types_8h.html#a396617de2ef101891c51346f408a375ea352b176ffa092ec946a06b707f6aa21b">JackUseExactName</a> option, the server will modify this name to create a unique variant, if needed.</td></tr>
<tr><tdclass="paramname">options</td><td>formed by OR-ing together <aclass="el" href="types_8h.html#a396617de2ef101891c51346f408a375e">JackOptions</a> bits. Only the <aclass="el" href="types_8h.html#ab39e7f78dba631f3c0d34ac4cddcf80f">JackOpenOptions</a> bits are allowed.</td></tr>
<tr><tdclass="paramname">status</td><td>(if non-NULL) an address for JACK to return information from the open operation. This status word is formed by OR-ing together the relevant <aclass="el" href="types_8h.html#aaf80297bce18297403b99e3d320ac8a8">JackStatus</a> bits.</td></tr>
</table>
</dd>
</dl>
<p><b>Optional parameters:</b> depending on corresponding [<em>options</em> bits] additional parameters may follow <em>status</em> (in this order).</p>
<ul>
<li>[<aclass="el" href="types_8h.html#a396617de2ef101891c51346f408a375ea348557bfdc579daed2e35cc41c4f09c7">JackServerName</a>] <em>(char *) server_name</em> selects from among several possible concurrent server instances. Server names are unique to each user. If unspecified, use "default" unless $JACK_DEFAULT_SERVER is defined in the process environment.</li>
</ul>
<dlclass="section return"><dt>Returns</dt><dd>Opaque client handle if successful. If this is NULL, the open operation failed, <em>*status</em> includes <aclass="el" href="types_8h.html#aaf80297bce18297403b99e3d320ac8a8a354fbb027d989173f50921d239f3812b">JackFailure</a> and the caller is not a JACK client. </dd></dl>
<p>Tell the Jack server to remove this <em>client</em> from the process graph. Also, disconnect all ports belonging to it, since inactive clients have no port connections.</p>
<dlclass="section return"><dt>Returns</dt><dd>0 on success, otherwise a non-zero error code </dd></dl>
<dlclass="section return"><dt>Returns</dt><dd>pointer to actual client name. This is useful when <aclass="el" href="types_8h.html#a396617de2ef101891c51346f408a375ea352b176ffa092ec946a06b707f6aa21b">JackUseExactName</a> is not specified on open and <aclass="el" href="types_8h.html#aaf80297bce18297403b99e3d320ac8a8a09a73b951f3601ae9436bd3429ac0691">JackNameNotUnique</a> status was returned. In that case, the actual name will differ from the <em>client_name</em> requested. </dd></dl>
<p>Load an internal client into the Jack server.</p>
<p>Internal clients run inside the JACK server process. They can use most of the same functions as external clients. Each internal client must declare jack_initialize() and jack_finish() entry points, called at load and unload times. See inprocess.c for an example of how to write an internal client.</p>
<dlclass="deprecated"><dt><b><aclass="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd>Please use <aclass="el" href="intclient_8h.html#aff038e9c251a2cdf4a5ce94d9d0ea88c">jack_internal_client_load()</a>.</dd></dl>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">client_name</td><td>of at most <aclass="el" href="group__ClientFunctions.html#gab8b16ee616207532d0585d04a0bd1d60">jack_client_name_size()</a> characters.</td></tr>
<tr><tdclass="paramname">load_name</td><td>of a shared object file containing the code for the new client.</td></tr>
<tr><tdclass="paramname">load_init</td><td>an arbitary string passed to the jack_initialize() routine of the new client (may be NULL).</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>0 if successful. </dd></dl>