ifXTable.h
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:22k
源码类别:

SNMP编程

开发平台:

Unix_Linux

  1. /*
  2.  * Note: this file originally auto-generated by mib2c using
  3.  *       version : 1.32 $ of : mfd-top.m2c,v $
  4.  *
  5.  * $Id: ifXTable.h,v 1.14 2004/10/15 23:52:21 rstory Exp $
  6.  */
  7. #ifndef IFXTABLE_H
  8. #define IFXTABLE_H
  9. #ifdef __cplusplus
  10. extern          "C" {
  11. #endif
  12. /** @defgroup misc misc: Miscelaneous routines
  13.  *
  14.  * @{
  15.  */
  16. #include <net-snmp/library/asn1.h>
  17. #include <net-snmp/data_access/interface.h>
  18. #include "if-mib/ifTable/ifTable.h"
  19.     /*
  20.      * OID, column number and enum definions for  
  21.      */
  22. #include "ifXTable_constants.h"
  23.     /*
  24.      *********************************************************************
  25.      * function declarations
  26.      */
  27.     void            init_ifXTable(void);
  28.     /*
  29.      *********************************************************************
  30.      * Table declarations
  31.      */
  32. /**********************************************************************
  33.  **********************************************************************
  34.  ***
  35.  *** Table ifXTable
  36.  ***
  37.  **********************************************************************
  38.  **********************************************************************/
  39.     /*
  40.      * ifXTable is subid 1 of ifMIBObjects.
  41.      * Its status is Current.
  42.      * OID: .1.3.6.1.2.1.31.1.1, length: 9
  43.      *
  44.      * we share data structures (data too, in fact) with ifTable
  45.      */
  46. #include "if-mib/ifTable/ifTable.h"
  47.     typedef ifTable_registration_ptr ifXTable_registration_ptr;
  48.     typedef ifTable_data ifXTable_data;
  49.     typedef ifTable_undo_data ifXTable_undo_data;
  50.     typedef ifTable_mib_index ifXTable_mib_index;
  51.     typedef ifTable_rowreq_ctx ifXTable_rowreq_ctx;
  52.     typedef ifTable_ref_rowreq_ctx ifXTable_ref_rowreq_ctx;
  53. #define ifXTable_data_list           ifTable_data_list
  54. #define ifXTable_reg                 ifTable_reg
  55.     /*
  56.      *********************************************************************
  57.      * function prototypes
  58.      */
  59.     int             ifXTable_pre_request(ifXTable_registration_ptr
  60.                                          user_context);
  61.     int             ifXTable_post_request(ifXTable_registration_ptr
  62.                                           user_context);
  63.     int             ifXTable_init_rowreq_ctx(ifXTable_rowreq_ctx *
  64.                                              rowreq_ctx);
  65.     void            ifXTable_cleanup_rowreq_ctx(ifXTable_rowreq_ctx *
  66.                                                 rowreq_ctx);
  67.     int             ifXTable_check_dependencies(ifXTable_rowreq_ctx *
  68.                                                 rowreq_ctx);
  69.     int             ifXTable_commit(ifXTable_rowreq_ctx * rowreq_ctx);
  70.     extern oid      ifXTable_oid[];
  71.     extern int      ifXTable_oid_size;
  72. #include "ifXTable_interface.h"
  73. #include "ifXTable_data_access.h"
  74.     /*
  75.      *********************************************************************
  76.      * GET function declarations
  77.      */
  78.     /*
  79.      *********************************************************************
  80.      * GET Table declarations
  81.      */
  82. /**********************************************************************
  83.  **********************************************************************
  84.  ***
  85.  *** Table ifXTable
  86.  ***
  87.  **********************************************************************
  88.  **********************************************************************/
  89.     /*
  90.      * ifXTable is subid 1 of ifMIBObjects.
  91.      * Its status is Current.
  92.      * OID: .1.3.6.1.2.1.31.1.1, length: 9
  93.      */
  94.     /*
  95.      * indexes
  96.      */
  97.     int             ifName_get(ifXTable_rowreq_ctx * rowreq_ctx,
  98.                                char **ifName_val_ptr_ptr,
  99.                                size_t *ifName_val_ptr_len_ptr);
  100.     int             ifInMulticastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
  101.                                           u_long *
  102.                                           ifInMulticastPkts_val_ptr);
  103.     int             ifInBroadcastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
  104.                                           u_long *
  105.                                           ifInBroadcastPkts_val_ptr);
  106.     int             ifOutMulticastPkts_get(ifXTable_rowreq_ctx *
  107.                                            rowreq_ctx,
  108.                                            u_long *
  109.                                            ifOutMulticastPkts_val_ptr);
  110.     int             ifOutBroadcastPkts_get(ifXTable_rowreq_ctx *
  111.                                            rowreq_ctx,
  112.                                            u_long *
  113.                                            ifOutBroadcastPkts_val_ptr);
  114.     int             ifHCInOctets_get(ifXTable_rowreq_ctx * rowreq_ctx,
  115.                                      U64 * ifHCInOctets_val_ptr);
  116.     int             ifHCInUcastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
  117.                                         U64 * ifHCInUcastPkts_val_ptr);
  118.     int             ifHCInMulticastPkts_get(ifXTable_rowreq_ctx *
  119.                                             rowreq_ctx,
  120.                                             U64 *
  121.                                             ifHCInMulticastPkts_val_ptr);
  122.     int             ifHCInBroadcastPkts_get(ifXTable_rowreq_ctx *
  123.                                             rowreq_ctx,
  124.                                             U64 *
  125.                                             ifHCInBroadcastPkts_val_ptr);
  126.     int             ifHCOutOctets_get(ifXTable_rowreq_ctx * rowreq_ctx,
  127.                                       U64 * ifHCOutOctets_val_ptr);
  128.     int             ifHCOutUcastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
  129.                                          U64 * ifHCOutUcastPkts_val_ptr);
  130.     int             ifHCOutMulticastPkts_get(ifXTable_rowreq_ctx *
  131.                                              rowreq_ctx,
  132.                                              U64 *
  133.                                              ifHCOutMulticastPkts_val_ptr);
  134.     int             ifHCOutBroadcastPkts_get(ifXTable_rowreq_ctx *
  135.                                              rowreq_ctx,
  136.                                              U64 *
  137.                                              ifHCOutBroadcastPkts_val_ptr);
  138.     int             ifLinkUpDownTrapEnable_get(ifXTable_rowreq_ctx *
  139.                                                rowreq_ctx,
  140.                                                u_long *
  141.                                                ifLinkUpDownTrapEnable_val_ptr);
  142.     int             ifHighSpeed_get(ifXTable_rowreq_ctx * rowreq_ctx,
  143.                                     u_long * ifHighSpeed_val_ptr);
  144.     int             ifPromiscuousMode_get(ifXTable_rowreq_ctx * rowreq_ctx,
  145.                                           u_long *
  146.                                           ifPromiscuousMode_val_ptr);
  147.     int             ifConnectorPresent_get(ifXTable_rowreq_ctx *
  148.                                            rowreq_ctx,
  149.                                            u_long *
  150.                                            ifConnectorPresent_val_ptr);
  151.     int             ifAlias_get(ifXTable_rowreq_ctx * rowreq_ctx,
  152.                                 char **ifAlias_val_ptr_ptr,
  153.                                 size_t *ifAlias_val_ptr_len_ptr);
  154.     int             ifCounterDiscontinuityTime_get(ifXTable_rowreq_ctx *
  155.                                                    rowreq_ctx,
  156.                                                    u_long *
  157.                                                    ifCounterDiscontinuityTime_val_ptr);
  158.     int             ifXTable_indexes_set_tbl_idx(ifXTable_mib_index *
  159.                                                  tbl_idx,
  160.                                                  long ifIndex_val);
  161.     int             ifXTable_indexes_set(ifXTable_rowreq_ctx * rowreq_ctx,
  162.                                          long ifIndex_val);
  163.     /*
  164.      *********************************************************************
  165.      * SET function declarations
  166.      */
  167.     /*
  168.      *********************************************************************
  169.      * SET Table declarations
  170.      */
  171. /**********************************************************************
  172.  **********************************************************************
  173.  ***
  174.  *** Table ifXTable
  175.  ***
  176.  **********************************************************************
  177.  **********************************************************************/
  178.     /*
  179.      * ifXTable is subid 1 of ifMIBObjects.
  180.      * Its status is Current.
  181.      * OID: .1.3.6.1.2.1.31.1.1, length: 9
  182.      */
  183.     int             ifXTable_ifIndex_check_index(ifXTable_rowreq_ctx * rowreq_ctx);     /* external */
  184.     int             ifXTable_undo_setup(ifXTable_rowreq_ctx * rowreq_ctx);
  185.     int             ifXTable_undo_cleanup(ifXTable_rowreq_ctx *
  186.                                           rowreq_ctx);
  187.     int             ifXTable_commit(ifXTable_rowreq_ctx * rowreq_ctx);
  188.     int             ifXTable_undo_commit(ifXTable_rowreq_ctx * rowreq_ctx);
  189.     int             ifName_check_value(ifXTable_rowreq_ctx * rowreq_ctx,
  190.                                        char *ifName_val_ptr,
  191.                                        size_t ifName_val_ptr_len);
  192.     int             ifName_undo_setup(ifXTable_rowreq_ctx * rowreq_ctx);
  193.     int             ifName_set(ifXTable_rowreq_ctx * rowreq_ctx,
  194.                                char *ifName_val_ptr,
  195.                                size_t ifName_val_ptr_len);
  196.     int             ifName_undo(ifXTable_rowreq_ctx * rowreq_ctx);
  197.     int             ifInMulticastPkts_check_value(ifXTable_rowreq_ctx *
  198.                                                   rowreq_ctx,
  199.                                                   u_long
  200.                                                   ifInMulticastPkts_val);
  201.     int             ifInMulticastPkts_undo_setup(ifXTable_rowreq_ctx *
  202.                                                  rowreq_ctx);
  203.     int             ifInMulticastPkts_set(ifXTable_rowreq_ctx * rowreq_ctx,
  204.                                           u_long ifInMulticastPkts_val);
  205.     int             ifInMulticastPkts_undo(ifXTable_rowreq_ctx *
  206.                                            rowreq_ctx);
  207.     int             ifInBroadcastPkts_check_value(ifXTable_rowreq_ctx *
  208.                                                   rowreq_ctx,
  209.                                                   u_long
  210.                                                   ifInBroadcastPkts_val);
  211.     int             ifInBroadcastPkts_undo_setup(ifXTable_rowreq_ctx *
  212.                                                  rowreq_ctx);
  213.     int             ifInBroadcastPkts_set(ifXTable_rowreq_ctx * rowreq_ctx,
  214.                                           u_long ifInBroadcastPkts_val);
  215.     int             ifInBroadcastPkts_undo(ifXTable_rowreq_ctx *
  216.                                            rowreq_ctx);
  217.     int             ifOutMulticastPkts_check_value(ifXTable_rowreq_ctx *
  218.                                                    rowreq_ctx,
  219.                                                    u_long
  220.                                                    ifOutMulticastPkts_val);
  221.     int             ifOutMulticastPkts_undo_setup(ifXTable_rowreq_ctx *
  222.                                                   rowreq_ctx);
  223.     int             ifOutMulticastPkts_set(ifXTable_rowreq_ctx *
  224.                                            rowreq_ctx,
  225.                                            u_long ifOutMulticastPkts_val);
  226.     int             ifOutMulticastPkts_undo(ifXTable_rowreq_ctx *
  227.                                             rowreq_ctx);
  228.     int             ifOutBroadcastPkts_check_value(ifXTable_rowreq_ctx *
  229.                                                    rowreq_ctx,
  230.                                                    u_long
  231.                                                    ifOutBroadcastPkts_val);
  232.     int             ifOutBroadcastPkts_undo_setup(ifXTable_rowreq_ctx *
  233.                                                   rowreq_ctx);
  234.     int             ifOutBroadcastPkts_set(ifXTable_rowreq_ctx *
  235.                                            rowreq_ctx,
  236.                                            u_long ifOutBroadcastPkts_val);
  237.     int             ifOutBroadcastPkts_undo(ifXTable_rowreq_ctx *
  238.                                             rowreq_ctx);
  239.     int             ifHCInOctets_check_value(ifXTable_rowreq_ctx *
  240.                                              rowreq_ctx,
  241.                                              U64 ifHCInOctets_val);
  242.     int             ifHCInOctets_undo_setup(ifXTable_rowreq_ctx *
  243.                                             rowreq_ctx);
  244.     int             ifHCInOctets_set(ifXTable_rowreq_ctx * rowreq_ctx,
  245.                                      U64 ifHCInOctets_val);
  246.     int             ifHCInOctets_undo(ifXTable_rowreq_ctx * rowreq_ctx);
  247.     int             ifHCInUcastPkts_check_value(ifXTable_rowreq_ctx *
  248.                                                 rowreq_ctx,
  249.                                                 U64 ifHCInUcastPkts_val);
  250.     int             ifHCInUcastPkts_undo_setup(ifXTable_rowreq_ctx *
  251.                                                rowreq_ctx);
  252.     int             ifHCInUcastPkts_set(ifXTable_rowreq_ctx * rowreq_ctx,
  253.                                         U64 ifHCInUcastPkts_val);
  254.     int             ifHCInUcastPkts_undo(ifXTable_rowreq_ctx * rowreq_ctx);
  255.     int             ifHCInMulticastPkts_check_value(ifXTable_rowreq_ctx *
  256.                                                     rowreq_ctx,
  257.                                                     U64
  258.                                                     ifHCInMulticastPkts_val);
  259.     int             ifHCInMulticastPkts_undo_setup(ifXTable_rowreq_ctx *
  260.                                                    rowreq_ctx);
  261.     int             ifHCInMulticastPkts_set(ifXTable_rowreq_ctx *
  262.                                             rowreq_ctx,
  263.                                             U64 ifHCInMulticastPkts_val);
  264.     int             ifHCInMulticastPkts_undo(ifXTable_rowreq_ctx *
  265.                                              rowreq_ctx);
  266.     int             ifHCInBroadcastPkts_check_value(ifXTable_rowreq_ctx *
  267.                                                     rowreq_ctx,
  268.                                                     U64
  269.                                                     ifHCInBroadcastPkts_val);
  270.     int             ifHCInBroadcastPkts_undo_setup(ifXTable_rowreq_ctx *
  271.                                                    rowreq_ctx);
  272.     int             ifHCInBroadcastPkts_set(ifXTable_rowreq_ctx *
  273.                                             rowreq_ctx,
  274.                                             U64 ifHCInBroadcastPkts_val);
  275.     int             ifHCInBroadcastPkts_undo(ifXTable_rowreq_ctx *
  276.                                              rowreq_ctx);
  277.     int             ifHCOutOctets_check_value(ifXTable_rowreq_ctx *
  278.                                               rowreq_ctx,
  279.                                               U64 ifHCOutOctets_val);
  280.     int             ifHCOutOctets_undo_setup(ifXTable_rowreq_ctx *
  281.                                              rowreq_ctx);
  282.     int             ifHCOutOctets_set(ifXTable_rowreq_ctx * rowreq_ctx,
  283.                                       U64 ifHCOutOctets_val);
  284.     int             ifHCOutOctets_undo(ifXTable_rowreq_ctx * rowreq_ctx);
  285.     int             ifHCOutUcastPkts_check_value(ifXTable_rowreq_ctx *
  286.                                                  rowreq_ctx,
  287.                                                  U64 ifHCOutUcastPkts_val);
  288.     int             ifHCOutUcastPkts_undo_setup(ifXTable_rowreq_ctx *
  289.                                                 rowreq_ctx);
  290.     int             ifHCOutUcastPkts_set(ifXTable_rowreq_ctx * rowreq_ctx,
  291.                                          U64 ifHCOutUcastPkts_val);
  292.     int             ifHCOutUcastPkts_undo(ifXTable_rowreq_ctx *
  293.                                           rowreq_ctx);
  294.     int             ifHCOutMulticastPkts_check_value(ifXTable_rowreq_ctx *
  295.                                                      rowreq_ctx,
  296.                                                      U64
  297.                                                      ifHCOutMulticastPkts_val);
  298.     int             ifHCOutMulticastPkts_undo_setup(ifXTable_rowreq_ctx *
  299.                                                     rowreq_ctx);
  300.     int             ifHCOutMulticastPkts_set(ifXTable_rowreq_ctx *
  301.                                              rowreq_ctx,
  302.                                              U64 ifHCOutMulticastPkts_val);
  303.     int             ifHCOutMulticastPkts_undo(ifXTable_rowreq_ctx *
  304.                                               rowreq_ctx);
  305.     int             ifHCOutBroadcastPkts_check_value(ifXTable_rowreq_ctx *
  306.                                                      rowreq_ctx,
  307.                                                      U64
  308.                                                      ifHCOutBroadcastPkts_val);
  309.     int             ifHCOutBroadcastPkts_undo_setup(ifXTable_rowreq_ctx *
  310.                                                     rowreq_ctx);
  311.     int             ifHCOutBroadcastPkts_set(ifXTable_rowreq_ctx *
  312.                                              rowreq_ctx,
  313.                                              U64 ifHCOutBroadcastPkts_val);
  314.     int             ifHCOutBroadcastPkts_undo(ifXTable_rowreq_ctx *
  315.                                               rowreq_ctx);
  316.     int             ifLinkUpDownTrapEnable_check_value(ifXTable_rowreq_ctx
  317.                                                        * rowreq_ctx,
  318.                                                        u_long
  319.                                                        ifLinkUpDownTrapEnable_val);
  320.     int             ifLinkUpDownTrapEnable_undo_setup(ifXTable_rowreq_ctx *
  321.                                                       rowreq_ctx);
  322.     int             ifLinkUpDownTrapEnable_set(ifXTable_rowreq_ctx *
  323.                                                rowreq_ctx,
  324.                                                u_long
  325.                                                ifLinkUpDownTrapEnable_val);
  326.     int             ifLinkUpDownTrapEnable_undo(ifXTable_rowreq_ctx *
  327.                                                 rowreq_ctx);
  328.     int             ifHighSpeed_check_value(ifXTable_rowreq_ctx *
  329.                                             rowreq_ctx,
  330.                                             u_long ifHighSpeed_val);
  331.     int             ifHighSpeed_undo_setup(ifXTable_rowreq_ctx *
  332.                                            rowreq_ctx);
  333.     int             ifHighSpeed_set(ifXTable_rowreq_ctx * rowreq_ctx,
  334.                                     u_long ifHighSpeed_val);
  335.     int             ifHighSpeed_undo(ifXTable_rowreq_ctx * rowreq_ctx);
  336.     int             ifPromiscuousMode_check_value(ifXTable_rowreq_ctx *
  337.                                                   rowreq_ctx,
  338.                                                   u_long
  339.                                                   ifPromiscuousMode_val);
  340.     int             ifPromiscuousMode_undo_setup(ifXTable_rowreq_ctx *
  341.                                                  rowreq_ctx);
  342.     int             ifPromiscuousMode_set(ifXTable_rowreq_ctx * rowreq_ctx,
  343.                                           u_long ifPromiscuousMode_val);
  344.     int             ifPromiscuousMode_undo(ifXTable_rowreq_ctx *
  345.                                            rowreq_ctx);
  346.     int             ifConnectorPresent_check_value(ifXTable_rowreq_ctx *
  347.                                                    rowreq_ctx,
  348.                                                    u_long
  349.                                                    ifConnectorPresent_val);
  350.     int             ifConnectorPresent_undo_setup(ifXTable_rowreq_ctx *
  351.                                                   rowreq_ctx);
  352.     int             ifConnectorPresent_set(ifXTable_rowreq_ctx *
  353.                                            rowreq_ctx,
  354.                                            u_long ifConnectorPresent_val);
  355.     int             ifConnectorPresent_undo(ifXTable_rowreq_ctx *
  356.                                             rowreq_ctx);
  357.     int             ifAlias_check_value(ifXTable_rowreq_ctx * rowreq_ctx,
  358.                                         char *ifAlias_val_ptr,
  359.                                         size_t ifAlias_val_ptr_len);
  360.     int             ifAlias_undo_setup(ifXTable_rowreq_ctx * rowreq_ctx);
  361.     int             ifAlias_set(ifXTable_rowreq_ctx * rowreq_ctx,
  362.                                 char *ifAlias_val_ptr,
  363.                                 size_t ifAlias_val_ptr_len);
  364.     int             ifAlias_undo(ifXTable_rowreq_ctx * rowreq_ctx);
  365.     int ifCounterDiscontinuityTime_check_value(ifXTable_rowreq_ctx *
  366.                                                rowreq_ctx,
  367.                                                u_long
  368.                                                ifCounterDiscontinuityTime_val);
  369.     int ifCounterDiscontinuityTime_undo_setup(ifXTable_rowreq_ctx *
  370.                                               rowreq_ctx);
  371.     int             ifCounterDiscontinuityTime_set(ifXTable_rowreq_ctx *
  372.                                                    rowreq_ctx,
  373.                                                    u_long
  374.                                                    ifCounterDiscontinuityTime_val);
  375.     int             ifCounterDiscontinuityTime_undo(ifXTable_rowreq_ctx *
  376.                                                     rowreq_ctx);
  377.     int             ifXTable_check_dependencies(ifXTable_rowreq_ctx * ctx);
  378.     /*
  379.      * DUMMY markers, ignore
  380.      *
  381.      * TODO:099:x: *************************************************************
  382.      * TODO:199:x: *************************************************************
  383.      * TODO:299:x: *************************************************************
  384.      * TODO:399:x: *************************************************************
  385.      * TODO:499:x: *************************************************************
  386.      */
  387. #ifdef __cplusplus
  388. }
  389. #endif
  390. #endif                          /* IFXTABLE_H */