📄 group__osip__from.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 from header definition.</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 from header definition.<br><small>[<a class="el" href="group__oSIP__HEADERS.html">oSIP headers definitions</a>]</small></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__from.html">osip_from</a></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="structosip__from.html">osip_from</a></td></tr><tr><td colspan=2><br><h2>Defines</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga12">osip_from_param_add</a>(header, name, value) osip_generic_param_add((header)->gen_params,name,value)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga13">osip_from_param_get_byname</a>(header, name, dest) osip_generic_param_get_byname((header)->gen_params,name,dest)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga14">osip_from_get_tag</a>(header, dest) osip_generic_param_get_byname((header)->gen_params, "tag",dest)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga15">osip_from_set_tag</a>(header, value) osip_generic_param_add((header)->gen_params, osip_strdup("tag"),value)</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__from.html">osip_from</a> </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga0">osip_from_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__FROM.html#ga1">osip_from_init</a> (<a class="el" href="structosip__from.html">osip_from_t</a> **header)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga2">osip_from_free</a> (<a class="el" href="structosip__from.html">osip_from_t</a> *header)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga3">osip_from_parse</a> (<a class="el" href="structosip__from.html">osip_from_t</a> *header, const char *hvalue)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga4">osip_from_to_str</a> (const <a class="el" href="structosip__from.html">osip_from_t</a> *header, char **dest)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga5">osip_from_clone</a> (const <a class="el" href="structosip__from.html">osip_from_t</a> *header, <a class="el" href="structosip__from.html">osip_from_t</a> **dest)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga6">osip_from_set_displayname</a> (<a class="el" href="structosip__from.html">osip_from_t</a> *header, char *value)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>char * </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga7">osip_from_get_displayname</a> (<a class="el" href="structosip__from.html">osip_from_t</a> *header)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga8">osip_from_set_url</a> (<a class="el" href="structosip__from.html">osip_from_t</a> *header, <a class="el" href="structosip__uri.html">osip_uri_t</a> *url)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structosip__uri.html">osip_uri_t</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga9">osip_from_get_url</a> (<a class="el" href="structosip__from.html">osip_from_t</a> *header)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga10">osip_from_param_get</a> (<a class="el" href="structosip__from.html">osip_from_t</a> *header, int pos, <a class="el" href="structosip__uri__param.html">osip_generic_param_t</a> **dest)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FROM.html#ga11">osip_from_tag_match</a> (<a class="el" href="structosip__from.html">osip_from_t</a> *from1, <a class="el" href="structosip__from.html">osip_from_t</a> *from2)</td></tr></table><hr><h2>Define Documentation</h2><a class="anchor" name="ga14" doxytag="osip_from.h::osip_from_get_tag" ></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"> #define osip_from_get_tag </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">header, <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>dest </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> osip_generic_param_get_byname((header)->gen_params, "tag",dest)</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Find the tag parameter in a From element. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>header</em> </td><td>The element to work on. </td></tr> <tr><td></td><td valign=top><em>dest</em> </td><td>A pointer on the element found. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="ga12" doxytag="osip_from.h::osip_from_param_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"> #define osip_from_param_add </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">header, <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>name, <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>value </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> osip_generic_param_add((header)->gen_params,name,value)</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Allocate and add a generic parameter 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>header</em> </td><td>The element to work on. </td></tr> <tr><td></td><td valign=top><em>name</em> </td><td>The token name. </td></tr> <tr><td></td><td valign=top><em>value</em> </td><td>The token value. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="ga13" doxytag="osip_from.h::osip_from_param_get_byname" ></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"> #define osip_from_param_get_byname </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">header, <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>name, <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>dest </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> osip_generic_param_get_byname((header)->gen_params,name,dest)</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Find a header parameter in a From element. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>header</em> </td><td>The element to work on. </td></tr> <tr><td></td><td valign=top><em>name</em> </td><td>The token name to search. </td></tr> <tr><td></td><td valign=top><em>dest</em> </td><td>A pointer on the element found. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="ga15" doxytag="osip_from.h::osip_from_set_tag" ></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"> #define osip_from_set_tag </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">header, <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>value </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> osip_generic_param_add((header)->gen_params, osip_strdup("tag"),value)</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Allocate and add a tag parameter element in a Contact element. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>header</em> </td><td>The element to work on. </td></tr> <tr><td></td><td valign=top><em>value</em> </td><td>The token value. </td></tr> </table></dl> </td> </tr></table><hr><h2>Typedef Documentation</h2><a class="anchor" name="ga0" doxytag="osip_from.h::osip_from_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__from.html">osip_from_t</a> </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Structure for From headers. </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga5" doxytag="osip_from.h::osip_from_clone" ></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_from_clone </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="structosip__from.html">osip_from_t</a> * </td> <td class="mdname" nowrap> <em>header</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap><a class="el" href="structosip__from.html">osip_from_t</a> ** </td> <td class="mdname" nowrap> <em>dest</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>Clone a From element. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>header</em> </td><td>The element to work on. </td></tr> <tr><td></td><td valign=top><em>dest</em> </td><td>A pointer on the copy of the element. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="ga2" doxytag="osip_from.h::osip_from_free" ></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_from_free </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structosip__from.html">osip_from_t</a> * </td> <td class="mdname1" valign="top" nowrap> <em>header</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Free a From element. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>header</em> </td><td>The element to work on. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="ga7" doxytag="osip_from.h::osip_from_get_displayname" ></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"> char* osip_from_get_displayname </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structosip__from.html">osip_from_t</a> * </td> <td class="mdname1" valign="top" nowrap> <em>header</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the displayname from a From header. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>header</em> </td><td>The element to work on. </td></tr> </table></dl>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -