and added files
[bcm963xx.git] / userapps / opensource / net-snmp / agent / mibgroup / misc / dlmod.h
1 /*
2  *  pass: pass through extensiblity
3  */
4 #ifndef _MIBGROUP_DLMOD_H
5 #define _MIBGROUP_DLMOD_H
6
7
8
9 #include "mibdefs.h"
10
11 #ifndef DLMOD_PATH
12 #define DLMOD_DEFAULT_PATH "/usr/local/lib/snmp/dlmod"
13 #endif
14
15 struct dlmod {
16     struct dlmod   *next;
17     int             index;
18     char            name[64];
19     char            path[255];
20     char            error[255];
21     void           *handle;
22     int             status;
23 };
24
25 #define DLMOD_LOADED    1
26 #define DLMOD_UNLOADED  2
27 #define DLMOD_ERROR             3
28 #define DLMOD_LOAD              4
29 #define DLMOD_UNLOAD    5
30 #define DLMOD_CREATE    6
31 #define DLMOD_DELETE    7
32
33 void            dlmod_load_module(struct dlmod *);
34 void            dlmod_unload_module(struct dlmod *);
35 struct dlmod   *dlmod_create_module(void);
36 void            dlmod_delete_module(struct dlmod *);
37 struct dlmod   *dlmod_get_by_index(int);
38
39 void            dlmod_init(void);
40 void            dlmod_deinit(void);
41
42 extern int      dlmod_next_index;
43 #endif                          /* _MIBGROUP_DLMOD_H */