00001 #ifndef NET_SNMP_MIB_API_H
00002 #define NET_SNMP_MIB_API_H
00003
00008 #include <net-snmp/types.h>
00009
00010 #ifdef __cplusplus
00011 extern "C" {
00012 #endif
00013
00014
00015 void netsnmp_init_mib(void);
00016 #ifndef NETSNMP_NO_LEGACY_DEFINITIONS
00017 void init_mib(void);
00018 void init_mib_internals(void);
00019 #endif
00020 void shutdown_mib(void);
00021
00022
00023 int add_mibdir(const char *);
00024 struct tree *netsnmp_read_module(const char *);
00025 #ifndef NETSNMP_NO_LEGACY_DEFINITIONS
00026 struct tree *read_module(const char *);
00027 #endif
00028 struct tree *read_mib(const char *);
00029 struct tree *read_all_mibs(void);
00030 void add_module_replacement(const char *, const char *,
00031 const char *, int);
00032
00033
00034 void snmp_set_mib_warnings(int);
00035 void snmp_set_mib_errors(int);
00036 void snmp_set_save_descriptions(int);
00037
00038
00039
00040 oid *snmp_parse_oid(const char *, oid *, size_t *);
00041 int read_objid(const char *, oid *, size_t *);
00042 int get_module_node(const char *, const char *, oid *, size_t *);
00043
00044
00045 void print_mib(FILE * fp);
00046
00047 void print_objid(const oid * objid, size_t objidlen);
00048 void fprint_objid(FILE * fp,
00049 const oid * objid, size_t objidlen);
00050 int snprint_objid(char *buf, size_t buf_len,
00051 const oid * objid, size_t objidlen);
00052
00053 void print_description(oid * objid, size_t objidlen, int width);
00054 void fprint_description(FILE * fp,
00055 oid * objid, size_t objidlen, int width);
00056 int snprint_description(char *buf, size_t buf_len,
00057 oid * objid, size_t objidlen, int width);
00058
00059 #ifdef __cplusplus
00060 }
00061 #endif
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073 #include <net-snmp/library/snmp_api.h>
00074 #include <net-snmp/library/mib.h>
00075 #ifndef NETSNMP_DISABLE_MIB_LOADING
00076 #include <net-snmp/library/parse.h>
00077 #endif
00078 #include <net-snmp/library/callback.h>
00079 #include <net-snmp/library/oid_stash.h>
00080 #include <net-snmp/library/ucd_compat.h>
00081
00082 #endif