nfs-ganesha 1.4
|
00001 00008 #ifndef __GET_SET_PROC_H__ 00009 #define __GET_SET_PROC_H__ 00010 00011 #include "snmp_adm.h" 00012 00017 typedef struct get_set_info_s 00018 { 00019 fct_get getter; 00020 fct_set setter; 00021 int branch; 00022 int num; 00023 unsigned char type; 00024 void *opt_arg; 00025 } get_set_info; 00026 00031 typedef struct proc_info_s 00032 { 00033 int num; 00034 int nb_in; 00035 int nb_out; 00036 snmp_adm_type_union **inputs; 00037 snmp_adm_type_union **outputs; 00038 void *opt_arg; 00039 proc myproc; 00040 int trigger; 00041 } proc_info; 00042 00048 typedef struct register_info_s 00049 { 00051 char *label; 00053 char *desc; 00058 union function_info_u 00059 { 00060 proc_info *proc; 00061 get_set_info *get_set; 00062 } function_info; 00063 00065 int type; 00067 enum type_e 00068 { 00069 SCAL, 00070 GET_SET, 00071 PROC 00072 } type_enum; 00074 netsnmp_handler_registration **reg; 00076 int reg_len; 00077 00079 struct register_info_s *next; 00080 } register_info; 00081 00085 typedef struct polling_arg_s 00086 { 00087 unsigned int second; 00088 trap_test test_fct; 00089 unsigned char type; 00090 snmp_adm_type_union value; 00091 void *args; 00092 } polling_arg; 00093 00094 #endif /* __GET_SET_PROC_H__ */