📄 group__osip__list.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>libosip: oSIP list Handling</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.8 --><div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div><h1>oSIP list Handling</h1><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Classes</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="structosip__list.html">osip_list</a></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="structosip__list.html">osip_list</a></td></tr><tr><td colspan=2><br><h2>Typedefs</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>typedef <a class="el" href="structosip__list.html">osip_list</a> </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__LIST.html#ga0">osip_list_t</a></td></tr><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__LIST.html#ga1">osip_list_init</a> (<a class="el" href="structosip__list.html">osip_list_t</a> *li)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__LIST.html#ga2">osip_list_special_free</a> (<a class="el" href="structosip__list.html">osip_list_t</a> *li, void *(*free_func)(void *))</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__LIST.html#ga3">osip_list_ofchar_free</a> (<a class="el" href="structosip__list.html">osip_list_t</a> *li)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__LIST.html#ga4">osip_list_size</a> (const <a class="el" href="structosip__list.html">osip_list_t</a> *li)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__LIST.html#ga5">osip_list_eol</a> (const <a class="el" href="structosip__list.html">osip_list_t</a> *li, int pos)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__LIST.html#ga6">osip_list_add</a> (<a class="el" href="structosip__list.html">osip_list_t</a> *li, void *element, int pos)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void * </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__LIST.html#ga7">osip_list_get</a> (const <a class="el" href="structosip__list.html">osip_list_t</a> *li, int pos)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__LIST.html#ga8">osip_list_remove</a> (<a class="el" href="structosip__list.html">osip_list_t</a> *li, int pos)</td></tr></table><hr><h2>Typedef Documentation</h2><a class="anchor" name="ga0" doxytag="osip_list.h::osip_list_t" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="structosip__list.html">osip_list_t</a> </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Structure for referencing a list of elements. </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga6" doxytag="osip_list.h::osip_list_add" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int osip_list_add </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structosip__list.html">osip_list_t</a> * </td> <td class="mdname" nowrap> <em>li</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>void * </td> <td class="mdname" nowrap> <em>element</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>pos</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Add an element in a list. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>li</em> </td><td>The element to work on. </td></tr> <tr><td></td><td valign=top><em>element</em> </td><td>The pointer on the element to add. </td></tr> <tr><td></td><td valign=top><em>pos</em> </td><td>the index of the element to add. (or -1 to append the element at the end) </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="ga5" doxytag="osip_list.h::osip_list_eol" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int osip_list_eol </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="structosip__list.html">osip_list_t</a> * </td> <td class="mdname" nowrap> <em>li</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>pos</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Check if the end of list is detected . <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>li</em> </td><td>The element to work on. </td></tr> <tr><td></td><td valign=top><em>pos</em> </td><td>The index of the possible element. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="ga7" doxytag="osip_list.h::osip_list_get" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void* osip_list_get </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="structosip__list.html">osip_list_t</a> * </td> <td class="mdname" nowrap> <em>li</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>pos</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get an element from a list. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>li</em> </td><td>The element to work on. </td></tr> <tr><td></td><td valign=top><em>pos</em> </td><td>the index of the element to get. </td></tr> </table></dl> </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -