</pre><p>This is the prototype for a extended link detection callback.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctx</tt></i>:</span></td><td>user data pointer</td></tr><tr><td><spanclass="term"><i><tt>node</tt></i>:</span></td><td>the node carrying the link</td></tr><tr><td><spanclass="term"><i><tt>nbLocators</tt></i>:</span></td><td>the number of locators detected on the link</td></tr><tr><td><spanclass="term"><i><tt>hrefs</tt></i>:</span></td><td>pointer to the array of locator hrefs</td></tr><tr><td><spanclass="term"><i><tt>roles</tt></i>:</span></td><td>pointer to the array of locator roles</td></tr><tr><td><spanclass="term"><i><tt>nbArcs</tt></i>:</span></td><td>the number of arcs detected on the link</td></tr><tr><td><spanclass="term"><i><tt>from</tt></i>:</span></td><td>pointer to the array of source roles found on the arcs</td></tr><tr><td><spanclass="term"><i><tt>to</tt></i>:</span></td><td>pointer to the array of target roles found on the arcs</td></tr><tr><td><spanclass="term"><i><tt>show</tt></i>:</span></td><td>array of values for the show attributes found on the arcs</td></tr><tr><td><spanclass="term"><i><tt>actuate</tt></i>:</span></td><td>array of values for the actuate attributes found on the arcs</td></tr><tr><td><spanclass="term"><i><tt>nbTitles</tt></i>:</span></td><td>the number of titles detected on the link</td></tr><tr><td><spanclass="term"><i><tt>titles</tt></i>:</span></td><td/></tr><tr><td><spanclass="term"><i><tt>langs</tt></i>:</span></td><td>array of xml:lang values for the titles</td></tr></tbody></table></div></div>
</pre><p>This is the prototype for a extended link set detection callback.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctx</tt></i>:</span></td><td>user data pointer</td></tr><tr><td><spanclass="term"><i><tt>node</tt></i>:</span></td><td>the node carrying the link</td></tr><tr><td><spanclass="term"><i><tt>nbLocators</tt></i>:</span></td><td>the number of locators detected on the link</td></tr><tr><td><spanclass="term"><i><tt>hrefs</tt></i>:</span></td><td>pointer to the array of locator hrefs</td></tr><tr><td><spanclass="term"><i><tt>roles</tt></i>:</span></td><td>pointer to the array of locator roles</td></tr><tr><td><spanclass="term"><i><tt>nbTitles</tt></i>:</span></td><td>the number of titles detected on the link</td></tr><tr><td><spanclass="term"><i><tt>titles</tt></i>:</span></td><td/></tr><tr><td><spanclass="term"><i><tt>langs</tt></i>:</span></td><td>array of xml:lang values for the titles</td></tr></tbody></table></div></div>
<hr/>
<divclass="refsect2"lang="en"><h3><aname="xlinkNodeDetectFunc"/>Function type xlinkNodeDetectFunc</h3><preclass="programlisting">void xlinkNodeDetectFunc (void * ctx, <br/><ahref="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node)<br/>
</pre><p>This is the prototype for the link detection routine. It calls the default link detection callbacks upon link detection.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctx</tt></i>:</span></td><td>user data pointer</td></tr><tr><td><spanclass="term"><i><tt>node</tt></i>:</span></td><td>the node to check</td></tr></tbody></table></div></div>
</pre><p>This is the prototype for a simple link detection callback.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctx</tt></i>:</span></td><td>user data pointer</td></tr><tr><td><spanclass="term"><i><tt>node</tt></i>:</span></td><td>the node carrying the link</td></tr><tr><td><spanclass="term"><i><tt>href</tt></i>:</span></td><td>the target of the link</td></tr><tr><td><spanclass="term"><i><tt>role</tt></i>:</span></td><td>the role string</td></tr><tr><td><spanclass="term"><i><tt>title</tt></i>:</span></td><td>the link title</td></tr></tbody></table></div></div>
</pre><p>Get the default xlink detection routine</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the current function or NULL;</td></tr></tbody></table></div></div>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the current <ahref="libxml2-xlink.html#xlinkHandlerPtr">xlinkHandlerPtr</a> value.</td></tr></tbody></table></div></div>
</pre><p>Check whether the given node carries the attributes needed to be a link element (or is one of the linking elements issued from the (X)HTML DtDs). This routine don't try to do full checking of the link validity but tries to detect and return the appropriate link type.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document containing the node</td></tr><tr><td><spanclass="term"><i><tt>node</tt></i>:</span></td><td>the node pointer itself</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the <ahref="libxml2-xlink.html#xlinkType">xlinkType</a> of the node (XLINK_TYPE_NONE if there is no link detected.</td></tr></tbody></table></div></div>
</pre><p>Set the default xlink detection routine</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>func</tt></i>:</span></td><td>pointer to the new detection routine.</td></tr></tbody></table></div></div>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>handler</tt></i>:</span></td><td>the new value for the xlink handler block</td></tr></tbody></table></div></div>