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

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: usmDHUserKeyTable.h,v 1.6.2.1 2005/01/27 22:56:26 rstory Exp $
  6.  */
  7. #ifndef USMDHUSERKEYTABLE_H
  8. #define USMDHUSERKEYTABLE_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.     /*
  18.      * other required module components 
  19.      */
  20.     /* *INDENT-OFF*  */
  21. config_require(snmp-usm-dh-objects-mib/usmDHUserKeyTable/usmDHUserKeyTable_interface);
  22. config_require(snmp-usm-dh-objects-mib/usmDHUserKeyTable/usmDHUserKeyTable_data_access);
  23. config_require(snmp-usm-dh-objects-mib/usmDHUserKeyTable/usmDHUserKeyTable_data_get);
  24. config_require(snmp-usm-dh-objects-mib/usmDHUserKeyTable/usmDHUserKeyTable_data_set);
  25.     /* *INDENT-ON*  */
  26.     /*
  27.      * OID and column number definitions for  
  28.      */
  29. #include "usmDHUserKeyTable_oids.h"
  30.     /*
  31.      * enum definions 
  32.      */
  33. #include "usmDHUserKeyTable_enums.h"
  34.     /*
  35.      *********************************************************************
  36.      * function declarations
  37.      */
  38.     void            init_usmDHUserKeyTable(void);
  39.     /*
  40.      *********************************************************************
  41.      * Table declarations
  42.      */
  43. /**********************************************************************
  44.  **********************************************************************
  45.  ***
  46.  *** Table usmDHUserKeyTable
  47.  ***
  48.  **********************************************************************
  49.  **********************************************************************/
  50.     /*
  51.      * usmDHUserKeyTable is subid 2 of usmDHPublicObjects.
  52.      * Its status is Current.
  53.      * OID: .1.3.6.1.3.101.1.1.2, length: 9
  54.      */
  55.     /*
  56.      *********************************************************************
  57.      * When you register your mib, you get to provide a generic
  58.      * pointer that will be passed back to you for most of the
  59.      * functions calls.
  60.      *
  61.      * TODO:100:r: Review all context structures
  62.      */
  63.     /*
  64.      * TODO:101:o: |-> Review usmDHUserKeyTable registration context.
  65.      */
  66.     typedef struct usmUser *usmDHUserKeyTable_registration_ptr;
  67. /**********************************************************************/
  68.     /*
  69.      * TODO:110:r: |-> Review usmDHUserKeyTable data context structure.
  70.      * This structure is used to represent the data for usmDHUserKeyTable.
  71.      */
  72.     typedef struct usmUser usmDHUserKeyTable_data;
  73.     /*
  74.      *********************************************************************
  75.      * TODO:115:o: |-> Review usmDHUserKeyTable undo context.
  76.      * We're just going to use the same data structure for our
  77.      * undo_context. If you want to do something more efficent,
  78.      * define your typedef here.
  79.      */
  80.     typedef usmDHUserKeyTable_data usmDHUserKeyTable_undo_data;
  81.     /*
  82.      * TODO:120:r: |-> Review usmDHUserKeyTable mib index.
  83.      * This structure is used to represent the index for usmDHUserKeyTable.
  84.      */
  85.     typedef struct usmDHUserKeyTable_mib_index_s {
  86.         /*
  87.          * usmUserEngineID(1)/SnmpEngineID/ASN_OCTET_STR/char(char)//L/a/w/e/R/d/h
  88.          */
  89.         char            usmUserEngineID[32];
  90.         size_t          usmUserEngineID_len;
  91.         /*
  92.          * usmUserName(2)/SnmpAdminString/ASN_OCTET_STR/char(char)//L/a/w/e/R/d/H
  93.          */
  94.         char            usmUserName[32];
  95.         size_t          usmUserName_len;
  96.     } usmDHUserKeyTable_mib_index;
  97.     /*
  98.      * TODO:121:r: |   |-> Review usmDHUserKeyTable max index length.
  99.      * If you KNOW that your indexes will never exceed a certain
  100.      * length, update this macro to that length.
  101.      *
  102.      * BE VERY CAREFUL TO TAKE INTO ACCOUNT THE MAXIMUM
  103.      * POSSIBLE LENGHT FOR EVERY VARIABLE LENGTH INDEX!
  104.      * Guessing 128 - col/entry(2)  - oid len(9)
  105.      */
  106. #define MAX_usmDHUserKeyTable_IDX_LEN     66
  107.     /*
  108.      *********************************************************************
  109.      * TODO:130:o: |-> Review usmDHUserKeyTable Row request (rowreq) context.
  110.      * When your functions are called, you will be passed a
  111.      * usmDHUserKeyTable_rowreq_ctx pointer.
  112.      */
  113.     typedef struct usmDHUserKeyTable_rowreq_ctx_s {
  114.     /** this must be first for container compare to work */
  115.         netsnmp_index   oid_idx;
  116.         oid             oid_tmp[MAX_usmDHUserKeyTable_IDX_LEN];
  117.         usmDHUserKeyTable_mib_index tbl_idx;
  118.         usmDHUserKeyTable_data *data;
  119.         usmDHUserKeyTable_undo_data *undo;
  120.         unsigned int    column_set_flags;       /* flags for set columns */
  121.         /*
  122.          * flags per row. Currently, the first (lower) 8 bits are reserved
  123.          * for the user. See mfd.h for other flags.
  124.          */
  125.         u_int           rowreq_flags;
  126.         /*
  127.          * implementor's context pointer (provided during registration)
  128.          */
  129.         usmDHUserKeyTable_registration_ptr usmDHUserKeyTable_reg;
  130.         /*
  131.          * TODO:131:o: |   |-> Add useful data to usmDHUserKeyTable rowreq context.
  132.          */
  133.         /*
  134.          * storage for future expansion
  135.          */
  136.         netsnmp_data_list *usmDHUserKeyTable_data_list;
  137.     } usmDHUserKeyTable_rowreq_ctx;
  138.     typedef struct usmDHUserKeyTable_ref_rowreq_ctx_s {
  139.         usmDHUserKeyTable_rowreq_ctx *rowreq_ctx;
  140.     } usmDHUserKeyTable_ref_rowreq_ctx;
  141.     /*
  142.      *********************************************************************
  143.      * function prototypes
  144.      */
  145.     int
  146.         usmDHUserKeyTable_pre_request(usmDHUserKeyTable_registration_ptr
  147.                                       user_context);
  148.     int
  149.         usmDHUserKeyTable_post_request(usmDHUserKeyTable_registration_ptr
  150.                                        user_context);
  151.     usmDHUserKeyTable_data *usmDHUserKeyTable_allocate_data(void);
  152.     void            usmDHUserKeyTable_release_data(usmDHUserKeyTable_data *
  153.                                                    data);
  154.     int
  155.         usmDHUserKeyTable_check_dependencies(usmDHUserKeyTable_rowreq_ctx *
  156.                                              rowreq_ctx);
  157.     int             usmDHUserKeyTable_commit(usmDHUserKeyTable_rowreq_ctx *
  158.                                              rowreq_ctx);
  159.     int
  160.         usmDHUserKeyTable_irreversible_commit(usmDHUserKeyTable_rowreq_ctx
  161.                                               * rowreq_ctx);
  162.     extern oid      usmDHUserKeyTable_oid[];
  163.     extern int      usmDHUserKeyTable_oid_size;
  164. #include "usmDHUserKeyTable_interface.h"
  165. #include "usmDHUserKeyTable_data_access.h"
  166. #include "usmDHUserKeyTable_data_get.h"
  167. #include "usmDHUserKeyTable_data_set.h"
  168.     /*
  169.      * DUMMY markers, ignore
  170.      *
  171.      * TODO:099:x: *************************************************************
  172.      * TODO:199:x: *************************************************************
  173.      * TODO:299:x: *************************************************************
  174.      * TODO:399:x: *************************************************************
  175.      * TODO:499:x: *************************************************************
  176.      */
  177. #ifdef __cplusplus
  178. }
  179. #endif
  180. #endif                          /* USMDHUSERKEYTABLE_H */