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

SNMP编程

开发平台:

Unix_Linux

  1. /*
  2.  * This file was generated by mib2c and is intended for use as a mib module
  3.  * for the ucd-snmp snmpd agent. 
  4.  */
  5. #ifndef _MIBGROUP_MTEOBJECTSTABLE_H
  6. #define _MIBGROUP_MTEOBJECTSTABLE_H
  7. /*
  8.  * we may use header_complex from the header_complex module 
  9.  */
  10. config_require(header_complex)
  11.     /*
  12.      * our storage structure(s) 
  13.      */
  14.      struct mteObjectsTable_data {
  15.          char           *mteOwner;
  16.          size_t          mteOwnerLen;
  17.          char           *mteObjectsName;
  18.          size_t          mteObjectsNameLen;
  19.          unsigned long   mteObjectsIndex;
  20.          oid            *mteObjectsID;
  21.          size_t          mteObjectsIDLen;
  22.          long            mteObjectsIDWildcard;
  23.          long            mteObjectsEntryStatus;
  24.          int             storagetype;
  25.      };
  26. /*
  27.  * enum definitions from the covered mib sections 
  28.  */
  29. #define MTEOBJECTSIDWILDCARD_TRUE                1
  30. #define MTEOBJECTSIDWILDCARD_FALSE               2
  31. /*
  32.  * function prototypes 
  33.  */
  34.      void            init_mteObjectsTable(void);
  35.      FindVarMethod   var_mteObjectsTable;
  36.      void            parse_mteObjectsTable(const char *, char *);
  37.      SNMPCallback    store_mteObjectsTable;
  38.      void            mte_add_objects(netsnmp_variable_list *,
  39.                                      struct mteTriggerTable_data *,
  40.                                      const char *, const char *, oid *,
  41.                                      size_t);
  42.      int             mte_add_object_to_table(const char *owner,
  43.                                              const char *objname,
  44.                                              oid * oidname,
  45.                                              size_t oidname_len,
  46.                                              int iswild);
  47.      WriteMethod     write_mteObjectsID;
  48.      WriteMethod     write_mteObjectsIDWildcard;
  49.      WriteMethod     write_mteObjectsEntryStatus;
  50.      WriteMethod     write_mteObjectsEntryStatus;
  51. #endif                          /* _MIBGROUP_MTEOBJECTSTABLE_H */