<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >netSnmpIETFWGTable.h</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="NetSNMP subagent development manual" HREF="book1.html"><LINK REL="UP" TITLE="Appendix" HREF="c641.html"><LINK REL="PREVIOUS" TITLE="Appendix" HREF="c641.html"><LINK REL="NEXT" TITLE="netSnmpIETFWGTable.c" HREF="x649.html"><link rel="stylesheet" href="/openhpi.css" type="text/css"> </head ><BODY CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><div id="banner"><div><h1>The OpenHPI Project</h1><small>Open Hardware Platform Interface</small></div></div><table><tr> <!--#include virtual="/sidebar.html" --> <td id="maincolumn"><div class="mainsegment"> <DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >NetSNMP subagent development manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="c641.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Appendix</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="x649.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="AEN646" >netSnmpIETFWGTable.h</A ></H1 ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >/* * Note: this file originally auto-generated by mib2c using * : mib2c.array-user.conf,v 5.15 2002/12/18 00:33:10 rstory Exp $ * * $Id: appendix.sgml 4148 2004-02-07 15:14:46Z konradrzeszutek $ * * Yes, there is lots of code here that you might not use. But it is much * easier to remove code than to add it! */ #ifndef NETSNMPIETFWGTABLE_H #define NETSNMPIETFWGTABLE_H #ifdef __cplusplus extern "C" { #endif #include <net-snmp/net-snmp-config.h> #include <net-snmp/library/container.h> #include <net-snmp/agent/table_array.h> /** Index nsIETFWGName is internal */ typedef struct netSnmpIETFWGTable_context_s { netsnmp_index index; /** THIS MUST BE FIRST!!! */ /************************************************************* * You can store data internally in this structure. * * TODO: You will probably have to fix a few types here... */ /** OCTETSTR = ASN_OCTET_STR */ char nsIETFWGName[65535]; long nsIETFWGName_len; /** OCTETSTR = ASN_OCTET_STR */ char nsIETFWGChair1[65535]; long nsIETFWGChair1_len; /** OCTETSTR = ASN_OCTET_STR */ char nsIETFWGChair2[255]; long nsIETFWGChair2_len; /* * OR * * Keep a pointer to your data */ void * data; /* *add anything else you want here */ } netSnmpIETFWGTable_context; /************************************************************* * function declarations */ void init_netSnmpIETFWGTable(void); void initialize_table_netSnmpIETFWGTable(void); const netSnmpIETFWGTable_context * netSnmpIETFWGTable_get_by_idx(netsnmp_index *); const netSnmpIETFWGTable_context * netSnmpIETFWGTable_get_by_idx_rs(netsnmp_index *, int row_status); int netSnmpIETFWGTable_get_value(netsnmp_request_info *, netsnmp_index *, netsnmp_table_request_info *); /************************************************************* * oid declarations */ extern oid netSnmpIETFWGTable_oid[]; extern size_t netSnmpIETFWGTable_oid_len; #define netSnmpIETFWGTable_TABLE_OID 1,3,6,1,4,1,8072,2,2,1 /************************************************************* * column number definitions for table netSnmpIETFWGTable */ #define COLUMN_NSIETFWGNAME 1 #define COLUMN_NSIETFWGCHAIR1 2 #define COLUMN_NSIETFWGCHAIR2 3 #define COLUMN_NSIETFWGPROGRESS 4 #define netSnmpIETFWGTable_COL_MIN 2 #define netSnmpIETFWGTable_COL_MAX 3 /* comment out the following line if you don't handle SET-REQUEST for netSnmpIETFWGTable */ #define netSnmpIETFWGTable_SET_HANDLING /* comment out the following line if you can't create new rows */ #define netSnmpIETFWGTable_ROW_CREATION /* comment out the following line if you don't want the secondary index */ /* #define netSnmpIETFWGTable_IDX2 */ #ifdef netSnmpIETFWGTable_SET_HANDLING int netSnmpIETFWGTable_extract_index( netSnmpIETFWGTable_context * ctx, netsnmp_index * hdr ); void netSnmpIETFWGTable_set_reserve1( netsnmp_request_group * ); void netSnmpIETFWGTable_set_reserve2( netsnmp_request_group * ); void netSnmpIETFWGTable_set_action( netsnmp_request_group * ); void netSnmpIETFWGTable_set_commit( netsnmp_request_group * ); void netSnmpIETFWGTable_set_free( netsnmp_request_group * ); void netSnmpIETFWGTable_set_undo( netsnmp_request_group * ); netSnmpIETFWGTable_context * netSnmpIETFWGTable_duplicate_row( netSnmpIETFWGTable_context* ); netsnmp_index * netSnmpIETFWGTable_delete_row( netSnmpIETFWGTable_context* ); int netSnmpIETFWGTable_can_delete(netSnmpIETFWGTable_context *undo_ctx, netSnmpIETFWGTable_context *row_ctx, netsnmp_request_group * rg); #ifdef netSnmpIETFWGTable_ROW_CREATION netSnmpIETFWGTable_context * netSnmpIETFWGTable_create_row( netsnmp_index* ); #endif #endif #ifdef netSnmpIETFWGTable_IDX2 netSnmpIETFWGTable_context * netSnmpIETFWGTable_get( const char *name, int len ); #endif #ifdef __cplusplus }; #endif #endif /** NETSNMPIETFWGTABLE_H */</PRE ></TD ></TR ></TABLE ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="c641.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="book1.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="x649.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Appendix</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="c641.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >netSnmpIETFWGTable.c</TD ></TR ></TABLE ></DIV ></BODY ></HTML >