Code Search for Developers
 
 
  

container__iterator_8h-source.html from net-snmp at Krugle


Show container__iterator_8h-source.html syntax highlighted

<!--#set var="section" value="development" -->
<!--#include virtual="/page-top.html" -->
<!-- CONTENT START -->
  <!-- Generated by Doxygen 1.3.9.1 -->

  <div class="qindex">
    <a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class=
    "qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class=
    "qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <a class=
    "qindex" href="examples.html">Examples</a>
  </div>

  <div class="nav">
    <a class="el" href="dir_000000.html">include</a>&nbsp;/&nbsp;<a class="el" href=
    "dir_000001.html">net-snmp</a>&nbsp;/&nbsp;<a class="el" href="dir_000006.html">library</a>
  </div>

  <h1>container_iterator.h</h1>

  <div class="fragment">
    <pre class="fragment">
00001 
00006 <span class="preprocessor">#ifndef _CONTAINER_ITERATOR_HANDLER_H_</span>
00007 <span class="preprocessor">#define _CONTAINER_ITERATOR_HANDLER_H_</span>
00008 
00009 <span class="preprocessor">#include "container.h"</span>
00010 
00011 <span class="preprocessor">#ifdef __cplusplus</span>
00012 <span class="keyword">extern</span>          <span class="stringliteral">"C"</span> {
00013 <span class="preprocessor">#endif</span>
00014 
00015     <span class="keyword">typedef</span> int (Netsnmp_Iterator_Loop_Key) (<span class=
"keywordtype">void</span> *iterator_ctx,
00016                                              netsnmp_ref_void* loop_ctx,
00017                                              netsnmp_ref_void* key);
00018     <span class="keyword">typedef</span> int (Netsnmp_Iterator_Loop_Data)(<span class=
"keywordtype">void</span> *iterator_ctx,
00019                                              netsnmp_ref_void* loop_ctx,
00020                                              netsnmp_ref_void* data);
00021     <span class="keyword">typedef</span> int (Netsnmp_Iterator_Ctx) (<span class="keywordtype">void</span> *iterator_ctx,
00022                                          netsnmp_ref_void* loop_ctx);
00023     <span class="keyword">typedef</span> int (Netsnmp_Iterator_Ctx_Dup) (<span class=
"keywordtype">void</span> *iterator_ctx,
00024                                             netsnmp_ref_void* loop_ctx,
00025                                             netsnmp_ref_void* dup_ctx,
00026                                             <span class="keywordtype">int</span> reuse);
00027     <span class="keyword">typedef</span> int (Netsnmp_Iterator_Op) (<span class="keywordtype">void</span> *iterator_ctx);
00028     <span class="keyword">typedef</span> int (Netsnmp_Iterator_Data) (<span class="keywordtype">void</span> *iterator_ctx,
00029                                             <span class="keyword">const</span> <span class=
"keywordtype">void</span> *data);    
00030 
00031     <span class="keywordtype">void</span> netsnmp_container_iterator_init(<span class="keywordtype">void</span>);
00032 
00033     netsnmp_container* netsnmp_container_iterator_get(
00034         <span class="keywordtype">void</span> *iterator_user_ctx,
00035         netsnmp_container_compare * compare,
00036         Netsnmp_Iterator_Loop_Key * get_first,
00037         Netsnmp_Iterator_Loop_Key * get_next,
00038         Netsnmp_Iterator_Loop_Data * get_data,
00039         Netsnmp_Iterator_Ctx_Dup * save_pos, <span class="comment">/* iff returning static data */</span>
00040         Netsnmp_Iterator_Ctx * init_loop_ctx,
00041         Netsnmp_Iterator_Ctx * cleanup_loop_ctx,
00042         Netsnmp_Iterator_Data * free_user_ctx,
00043         <span class="keywordtype">int</span> sorted);
00044     
00045     <span class="comment">/*</span>
00046 <span class="comment">     * set up optional callbacks/</span>
00047 <span class="comment">     * NOTE: even though the first parameter is a generic netsnmp_container,</span>
00048 <span class="comment">     *       this function should only be called for a container created</span>
00049 <span class="comment">     *       by netsnmp_container_iterator_get.</span>
00050 <span class="comment">     */</span>
00051     <span class="keywordtype">void</span>
00052     netsnmp_container_iterator_set_data_cb(netsnmp_container *c,
00053                                            Netsnmp_Iterator_Data * insert_data,
00054                                            Netsnmp_Iterator_Data * remove_data,
00055                                            Netsnmp_Iterator_Op * get_size);
00056 
00057 <span class="preprocessor">#ifdef __cplusplus</span>
00058 }
00059 <span class="preprocessor">#endif</span>
00060 
00061 <span class="preprocessor">#endif                          </span><span class=
"comment">/* _CONTAINER_ITERATOR_HANDLER_H_ */</span>
00062 
</pre>
  </div>
  <hr size="1" />

  <address style="align: right;">
    <small>Generated on Fri Dec 30 13:47:44 2005 for net-snmp by&nbsp; <a href="http://www.doxygen.org/index.html"><img src=
    "doxygen.png" alt="doxygen" align="middle" border="0" /></a> 1.3.9.1</small>
  </address>
<!-- CONTENT END -->
<!--#include virtual="/page-bottom.html" -->





See more files for this project here

net-snmp

net-snmp provides tools and libraries relating to the Simple Network\r\nManagement Protocol including: An extensible agent, An SNMP library,\r\ntools to request or set information from SNMP agents, tools to\r\ngenerate and handle SNMP traps, etc.\r\n

Project homepage: http://sourceforge.net/projects/net-snmp
Programming language(s): C,Perl,Shell Script
License: other

  mfd/
  acconfig_8h-source.html
  acconfig_8h.html
  agent_2snmp__perl_8c-source.html
  agent__callbacks_8h-source.html
  agent__callbacks_8h.html
  agent__handler_8c-source.html
  agent__handler_8c.html
  agent__handler_8h-source.html
  agent__handler_8h.html
  agent__index_8c-source.html
  agent__index_8c.html
  agent__index_8h-source.html
  agent__index_8h.html
  agent__module__config_8h-source.html
  agent__read__config_8c-source.html
  agent__read__config_8c.html
  agent__read__config_8h-source.html
  agent__read__config_8h.html
  agent__registry_8c-source.html
  agent__registry_8c.html
  agent__registry_8h-source.html
  agent__registry_8h.html
  agent__trap_8c-source.html
  agent__trap_8c.html
  agent__trap_8h-source.html
  agent__trap_8h.html
  all__helpers_8c-source.html
  all__helpers_8h-source.html
  annotated.html
  asn1_8c-source.html
  asn1_8h-source.html
  auto__nlist_8c-source.html
  auto__nlist_8c.html
  auto__nlist_8h-source.html
  auto__nlist_8h.html
  autonlist_8h-source.html
  autonlist_8h.html
  baby__steps_8c-source.html
  baby__steps_8h-source.html
  blah.html
  bulk__to__next_8c-source.html
  bulk__to__next_8h-source.html
  cache__handler_8c-source.html
  cache__handler_8h-source.html
  callback_8c-source.html
  callback_8h-source.html
  check__varbind_8c-source.html
  check__varbind_8h-source.html
  cmu__compat_8c-source.html
  cmu__compat_8h-source.html
  config_8h-source.html
  config_8h.html
  config__api_8h-source.html
  container_8c-source.html
  container_8h-source.html
  container__binary__array_8c-source.html
  container__binary__array_8h-source.html
  container__iterator_8c-source.html
  container__iterator_8h-source.html
  container__list__ssll_8c-source.html
  container__list__ssll_8h-source.html
  container__null_8c-source.html
  container__null_8h-source.html
  data__list_8c-source.html
  data__list_8h-source.html
  data__set_8c-example.html
  data__set_8c-source.html
  data__set_8h-source.html
  debug__handler_8c-source.html
  debug__handler_8h-source.html
  default__store_8c-source.html
  default__store_8h-source.html
  default_store.html
  definitions_8h-source.html
  delayed__instance_8c-example.html
  delayed__instance_8c-source.html
  delayed__instance_8h-source.html
  deprecated.html
  dir_000000.html
  dir_000001.html
  dir_000002.html
  dir_000003.html
  dir_000004.html
  dir_000005.html
  dir_000006.html
  dir_000007.html
  dir_000008.html
  doxygen.css
  doxygen.gif
  doxygen.png
  ds__agent_8h-source.html
  ds__agent_8h.html
  example_8c-source.html
  example_8h-source.html
  examples.html
  factory_8h-source.html
  fd__event__manager_8c-source.html
  fd__event__manager_8h-source.html
  file__utils_8c-source.html
  file__utils_8h-source.html
  files.html