| Current File : //usr/share/doc/net-snmp/html/group__serialize.html |
<!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>net-snmp: serialize</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">net-snmp
 <span id="projectnumber">5.4.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.6.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">serialize</div> </div>
<div class="ingroups"><a class="el" href="group__utilities.html">utility_handlers</a></div></div><!--header-->
<div class="contents">
<p>Calls sub handlers one request at a time.
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__handler.html#ga77f4225c0e0c1d549e634f58dba3de3d">netsnmp_mib_handler</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__serialize.html#gae0aeed0da473505a5404a5c0d459412f">netsnmp_get_serialize_handler</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">returns a serialize handler that can be injected into a given handler chain. <a href="#gae0aeed0da473505a5404a5c0d459412f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__serialize.html#ga09c511d8a9c3b00a72884600a623d8a2">netsnmp_register_serialize</a> (<a class="el" href="group__handler.html#gac475ff73806c2d76ebfc78a87d921b8b">netsnmp_handler_registration</a> *reginfo)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">functionally the same as calling <a class="el" href="group__handler.html#gacdbdb9d74898a5bf04b0992ea0316aa4" title="register a handler, as defined by the netsnmp_handler_registration pointer.">netsnmp_register_handler()</a> but also injects a serialize handler at the same time for you. <a href="#ga09c511d8a9c3b00a72884600a623d8a2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__serialize.html#ga8db5ff4abb2bc94f5c126433e3f24e76">netsnmp_serialize_helper_handler</a> (<a class="el" href="group__handler.html#ga77f4225c0e0c1d549e634f58dba3de3d">netsnmp_mib_handler</a> *handler, <a class="el" href="group__handler.html#gac475ff73806c2d76ebfc78a87d921b8b">netsnmp_handler_registration</a> *reginfo, <a class="el" href="structnetsnmp__agent__request__info__s.html">netsnmp_agent_request_info</a> *reqinfo, <a class="el" href="structnetsnmp__request__info__s.html">netsnmp_request_info</a> *requests)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Implements the serial handler. <a href="#ga8db5ff4abb2bc94f5c126433e3f24e76"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__serialize.html#gae710ab1626d53847843f1821b298b6ea">netsnmp_init_serialize</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use. <a href="#gae710ab1626d53847843f1821b298b6ea"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<p>Calls sub handlers one request at a time. </p>
<p>This functionally passes in one request at a time into lower handlers rather than a whole bunch of requests at once. This is useful for handlers that don't want to iterate through the request lists themselves. Generally, this is probably less efficient so use with caution. The serialize handler might be useable to dynamically fix handlers with broken looping code, however. </p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="gae0aeed0da473505a5404a5c0d459412f"></a><!-- doxytag: member="serialize.c::netsnmp_get_serialize_handler" ref="gae0aeed0da473505a5404a5c0d459412f" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__handler.html#ga77f4225c0e0c1d549e634f58dba3de3d">netsnmp_mib_handler</a>* <a class="el" href="group__serialize.html#gae0aeed0da473505a5404a5c0d459412f">netsnmp_get_serialize_handler</a> </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>returns a serialize handler that can be injected into a given handler chain. </p>
<p>Definition at line <a class="el" href="serialize_8c_source.html#l00031">31</a> of file <a class="el" href="serialize_8c_source.html">serialize.c</a>.</p>
</div>
</div>
<a class="anchor" id="gae710ab1626d53847843f1821b298b6ea"></a><!-- doxytag: member="serialize.c::netsnmp_init_serialize" ref="gae710ab1626d53847843f1821b298b6ea" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__serialize.html#gae710ab1626d53847843f1821b298b6ea">netsnmp_init_serialize</a> </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use. </p>
<p>Definition at line <a class="el" href="serialize_8c_source.html#l00093">93</a> of file <a class="el" href="serialize_8c_source.html">serialize.c</a>.</p>
</div>
</div>
<a class="anchor" id="ga09c511d8a9c3b00a72884600a623d8a2"></a><!-- doxytag: member="serialize.c::netsnmp_register_serialize" ref="ga09c511d8a9c3b00a72884600a623d8a2" args="(netsnmp_handler_registration *reginfo)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__serialize.html#ga09c511d8a9c3b00a72884600a623d8a2">netsnmp_register_serialize</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__handler.html#gac475ff73806c2d76ebfc78a87d921b8b">netsnmp_handler_registration</a> * </td>
<td class="paramname"><em>reginfo</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>functionally the same as calling <a class="el" href="group__handler.html#gacdbdb9d74898a5bf04b0992ea0316aa4" title="register a handler, as defined by the netsnmp_handler_registration pointer.">netsnmp_register_handler()</a> but also injects a serialize handler at the same time for you. </p>
<p>Definition at line <a class="el" href="serialize_8c_source.html#l00040">40</a> of file <a class="el" href="serialize_8c_source.html">serialize.c</a>.</p>
</div>
</div>
<a class="anchor" id="ga8db5ff4abb2bc94f5c126433e3f24e76"></a><!-- doxytag: member="serialize.c::netsnmp_serialize_helper_handler" ref="ga8db5ff4abb2bc94f5c126433e3f24e76" args="(netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__serialize.html#ga8db5ff4abb2bc94f5c126433e3f24e76">netsnmp_serialize_helper_handler</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__handler.html#ga77f4225c0e0c1d549e634f58dba3de3d">netsnmp_mib_handler</a> * </td>
<td class="paramname"><em>handler</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__handler.html#gac475ff73806c2d76ebfc78a87d921b8b">netsnmp_handler_registration</a> * </td>
<td class="paramname"><em>reginfo</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structnetsnmp__agent__request__info__s.html">netsnmp_agent_request_info</a> * </td>
<td class="paramname"><em>reqinfo</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structnetsnmp__request__info__s.html">netsnmp_request_info</a> * </td>
<td class="paramname"><em>requests</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Implements the serial handler. </p>
<p>Definition at line <a class="el" href="serialize_8c_source.html#l00048">48</a> of file <a class="el" href="serialize_8c_source.html">serialize.c</a>.</p>
</div>
</div>
</div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>
</body>
</html>