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

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.c,v 1.4 2004/10/09 02:07:07 rstory Exp $
  6.  */
  7. /** mainpage MFD helper for usmDHUserKeyTable
  8.  *
  9.  * section intro Introduction
  10.  * Introductory text.
  11.  *
  12.  */
  13. /*
  14.  * standard Net-SNMP includes 
  15.  */
  16. #include <net-snmp/net-snmp-config.h>
  17. #include <net-snmp/net-snmp-includes.h>
  18. #include <net-snmp/agent/net-snmp-agent-includes.h>
  19. /*
  20.  * include our parent header 
  21.  */
  22. #include "usmDHUserKeyTable.h"
  23. #include <net-snmp/agent/mib_modules.h>
  24. #include "usmDHUserKeyTable_interface.h"
  25. oid             usmDHUserKeyTable_oid[] = { USMDHUSERKEYTABLE_OID };
  26. int             usmDHUserKeyTable_oid_size =
  27. OID_LENGTH(usmDHUserKeyTable_oid);
  28. void            initialize_table_usmDHUserKeyTable(void);
  29. /**
  30.  * Initializes the usmDHUserKeyTable module
  31.  */
  32. void
  33. init_usmDHUserKeyTable(void)
  34. {
  35.     DEBUGMSGTL(("verbose:usmDHUserKeyTable:init_usmDHUserKeyTable",
  36.                 "calledn"));
  37.     /*
  38.      * TODO:300:o: Perform usmDHUserKeyTable one-time module initialization.
  39.      */
  40.     /*
  41.      * here we initialize all the tables we're planning on supporting
  42.      */
  43.     if (should_init("usmDHUserKeyTable")) {
  44.         initialize_table_usmDHUserKeyTable();
  45.     }
  46. }                               /* init_usmDHUserKeyTable */
  47. /**
  48.  * Initialize the table usmDHUserKeyTable 
  49.  *    (Define its contents and how it's structured)
  50.  */
  51. void
  52. initialize_table_usmDHUserKeyTable(void)
  53. {
  54.     usmDHUserKeyTable_registration_ptr user_context;
  55.     u_long          flags;
  56.     DEBUGMSGTL(("verbose:usmDHUserKeyTable:initialize_table_usmDHUserKeyTable", "calledn"));
  57.     /*
  58.      * TODO:301:o: Perform usmDHUserKeyTable one-time table initialization.
  59.      */
  60.     /*
  61.      * TODO:302:o: |->Initialize usmDHUserKeyTable user context
  62.      * if you'd like to pass in a pointer to some data for this
  63.      * table, allocate or set it up here.
  64.      */
  65.     user_context = NULL;
  66.     /*
  67.      * No support for any flags yet, but in the future you would
  68.      * set any flags here.
  69.      */
  70.     flags = 0;
  71.     /*
  72.      * call interface initialization code
  73.      */
  74.     _usmDHUserKeyTable_initialize_interface(user_context, flags);
  75. }                               /* initialize_table_usmDHUserKeyTable */
  76. /**
  77.  * pre-request callback
  78.  *
  79.  *
  80.  * @retval MFD_SUCCESS              : success.
  81.  * @retval MFD_ERROR                : other error
  82.  */
  83. int
  84. usmDHUserKeyTable_pre_request(usmDHUserKeyTable_registration_ptr
  85.                               user_context)
  86. {
  87.     DEBUGMSGTL(("verbose:usmDHUserKeyTable:usmDHUserKeyTable_pre_request",
  88.                 "calledn"));
  89.     /*
  90.      * TODO:510:o: Perform usmDHUserKeyTable pre-request actions.
  91.      */
  92.     return MFD_SUCCESS;
  93. }                               /* usmDHUserKeyTable_pre_request */
  94. /**
  95.  * post-request callback
  96.  *
  97.  *
  98.  * @retval MFD_SUCCESS : success.
  99.  * @retval MFD_ERROR   : other error (ignored)
  100.  */
  101. int
  102. usmDHUserKeyTable_post_request(usmDHUserKeyTable_registration_ptr
  103.                                user_context)
  104. {
  105.     DEBUGMSGTL(("verbose:usmDHUserKeyTable:usmDHUserKeyTable_post_request",
  106.                 "calledn"));
  107.     /*
  108.      * TODO:511:o: Perform usmDHUserKeyTable pos-request actions.
  109.      */
  110.     return MFD_SUCCESS;
  111. }                               /* usmDHUserKeyTable_post_request */
  112. /** @{ */