instance.h

00001 /*
00002  * testhandler.h 
00003  */
00004 #ifndef NETSNMP_INSTANCE_H
00005 #define NETSNMP_INSTANCE_H
00006 
00007 #ifdef __cplusplus
00008 extern "C" {
00009 #endif
00010 
00011 /*
00012  * The instance helper is designed to simplify the task of adding simple
00013  * * instances to the mib tree.
00014  */
00015 
00016 /*
00017  * GETNEXTs are auto-converted to a GET.
00018  * * non-valid GETs are dropped.
00019  * * The client can assume that if you're called for a GET, it shouldn't
00020  * * have to check the oid at all.  Just answer.
00021  */
00022 
00023 int             netsnmp_register_instance(netsnmp_handler_registration
00024                                           *reginfo);
00025 int            
00026 netsnmp_register_read_only_instance(netsnmp_handler_registration *reginfo);
00027 
00028 #define INSTANCE_HANDLER_NAME "instance"
00029 
00030 netsnmp_mib_handler *netsnmp_get_instance_handler(void);
00031 
00032 int             netsnmp_register_read_only_ulong_instance(const char *name,
00033                                                           oid * reg_oid,
00034                                                           size_t
00035                                                           reg_oid_len,
00036                                                           u_long * it,
00037                                                           Netsnmp_Node_Handler
00038                                                           * subhandler);
00039 int             netsnmp_register_ulong_instance(const char *name,
00040                                                 oid * reg_oid,
00041                                                 size_t reg_oid_len,
00042                                                 u_long * it,
00043                                                 Netsnmp_Node_Handler *
00044                                                 subhandler);
00045 int             netsnmp_register_read_only_counter32_instance(const char
00046                                                               *name,
00047                                                               oid *
00048                                                               reg_oid,
00049                                                               size_t
00050                                                               reg_oid_len,
00051                                                               u_long * it,
00052                                                               Netsnmp_Node_Handler
00053                                                               *
00054                                                               subhandler);
00055 int             netsnmp_register_read_only_long_instance(const char *name,
00056                                                          oid * reg_oid,
00057                                                          size_t
00058                                                          reg_oid_len,
00059                                                          long *it,
00060                                                          Netsnmp_Node_Handler
00061                                                          * subhandler);
00062 int             netsnmp_register_long_instance(const char *name,
00063                                                oid * reg_oid,
00064                                                size_t reg_oid_len,
00065                                                long *it,
00066                                                Netsnmp_Node_Handler *
00067                                                subhandler);
00068 
00069 int             netsnmp_register_read_only_int_instance(const char *name,
00070                                               oid * reg_oid,
00071                                               size_t reg_oid_len, int *it,
00072                                               Netsnmp_Node_Handler *
00073                                               subhandler);
00074 
00075 int             netsnmp_register_int_instance(const char *name,
00076                                               oid * reg_oid,
00077                                               size_t reg_oid_len, int *it,
00078                                               Netsnmp_Node_Handler *
00079                                               subhandler);
00080 
00081 /* identical functions that register a in a particular context */
00082 int  netsnmp_register_read_only_ulong_instance_context(const char *name,
00083                                                        oid * reg_oid,
00084                                                        size_t
00085                                                        reg_oid_len,
00086                                                        u_long * it,
00087                                                        Netsnmp_Node_Handler
00088                                                        * subhandler,
00089                                                        const char *contextName);
00090 int  netsnmp_register_ulong_instance_context(const char *name,
00091                                              oid * reg_oid,
00092                                              size_t reg_oid_len,
00093                                              u_long * it,
00094                                              Netsnmp_Node_Handler *
00095                                              subhandler,
00096                                              const char *contextName);
00097 int  netsnmp_register_read_only_counter32_instance_context(const char
00098                                                            *name,
00099                                                            oid *
00100                                                            reg_oid,
00101                                                            size_t
00102                                                            reg_oid_len,
00103                                                            u_long * it,
00104                                                            Netsnmp_Node_Handler
00105                                                            *
00106                                                            subhandler,
00107                                                            const char *contextName);
00108 int  netsnmp_register_read_only_long_instance_context(const char *name,
00109                                                       oid * reg_oid,
00110                                                       size_t
00111                                                       reg_oid_len,
00112                                                       long *it,
00113                                                       Netsnmp_Node_Handler
00114                                                       * subhandler,
00115                                                       const char *contextName);
00116 int  netsnmp_register_long_instance_context(const char *name,
00117                                             oid * reg_oid,
00118                                             size_t reg_oid_len,
00119                                             long *it,
00120                                             Netsnmp_Node_Handler *
00121                                             subhandler,
00122                                             const char *contextName);
00123 
00124 int  netsnmp_register_read_only_int_instance_context(const char *name,
00125                                                      oid * reg_oid,
00126                                                      size_t reg_oid_len, int *it,
00127                                                      Netsnmp_Node_Handler *
00128                                                      subhandler,
00129                                                      const char *contextName);
00130 
00131 int  netsnmp_register_int_instance_context(const char *name,
00132                                            oid * reg_oid,
00133                                            size_t reg_oid_len, int *it,
00134                                            Netsnmp_Node_Handler *
00135                                            subhandler,
00136                                            const char *contextName);
00137 
00138 int  netsnmp_register_num_file_instance(const char *name,
00139                                         oid * reg_oid, size_t reg_oid_len,
00140                                         char *file_name, int asn_type, int mode,
00141                                         Netsnmp_Node_Handler * subhandler,
00142                                         const char *contextName);
00143 
00144 Netsnmp_Node_Handler netsnmp_instance_helper_handler;
00145 Netsnmp_Node_Handler netsnmp_instance_ulong_handler;
00146 Netsnmp_Node_Handler netsnmp_instance_long_handler;
00147 Netsnmp_Node_Handler netsnmp_instance_int_handler;
00148 Netsnmp_Node_Handler netsnmp_instance_counter32_handler;
00149 Netsnmp_Node_Handler netsnmp_instance_num_file_handler;
00150 
00151 #ifdef __cplusplus
00152 }
00153 #endif
00154 
00155 #endif 

net-snmpに対してSat Sep 5 13:14:21 2009に生成されました。  doxygen 1.4.7