Debian Codegraph @

agent/mibgroup/struct.h

raw
1 #ifndef UCD_SNMP_STRUCT
2 #define UCD_SNMP_STRUCT
3
4 #define STRMAX 1024
5 #define SHPROC 1
6 #define EXECPROC 2
7 #define PASSTHRU 3
8 #define PASSTHRU_PERSIST 4
9 #define MIBMAX 30
10
11 struct extensible {
12 char name[STRMAX];
13 char *command;
14 char fixcmd[STRMAX];
15 int type;
16 int result;
17 char output[STRMAX];
18 struct extensible *next;
19 oid miboid[MIBMAX];
20 size_t miblen;
21 int mibpriority;
22 netsnmp_pid_t pid;
23 #if defined(WIN32)
24 HANDLE tid; /* WIN32 thread */
25 #endif
26 #ifdef USING_SINGLE_COMMON_PASSPERSIST_INSTANCE
27 struct extensible *passpersist_inst;
28 #endif /* USING_SINGLE_COMMON_PASSPERSIST_INSTANCE */
29 };
30
31 struct myproc {
32 char name[STRMAX];
33 #ifdef HAVE_PCRE_H
34 netsnmp_regex_ptr regexp;
35 #endif
36 char fixcmd[STRMAX];
37 int min;
38 int max;
39 struct myproc *next;
40 };
41
42 /*
43 * struct mibinfo
44 * {
45 * int numid;
46 * unsigned long mibid[10];
47 * char *name;
48 * void (*handle) ();
49 * };
50 */
51
52 #endif