00001 #ifndef NET_SNMP_CONFIG_API_H
00002 #define NET_SNMP_CONFIG_API_H
00003
00009 #include <net-snmp/types.h>
00010
00011 #ifdef __cplusplus
00012 extern "C" {
00013 #endif
00014
00015 struct config_line *register_config_handler(const char *filePrefix,
00016 const char *token,
00017 void (*parser) (const char *, char *),
00018 void (*releaser) (void),
00019 const char *usageLine);
00020 struct config_line *register_app_config_handler(
00021 const char *token,
00022 void (*parser) (const char *, char *),
00023 void (*releaser) (void),
00024 const char *usageLine);
00025
00026
00027 struct config_line *register_prenetsnmp_mib_handler(const char *filePrefix,
00028 const char *token,
00029 void (*parser) (const char *, char *),
00030 void (*releaser) (void),
00031 const char *usageLine);
00032 struct config_line *register_app_prenetsnmp_mib_handler(
00033 const char *token,
00034 void (*parser) (const char *, char *),
00035 void (*releaser) (void),
00036 const char *usageLine);
00037
00038 void unregister_config_handler(const char *filePrefix, const char *token);
00039 void unregister_app_config_handler( const char *token);
00040 void unregister_all_config_handlers(void);
00041
00042 void register_mib_handlers(void);
00043 void read_configs(void);
00044 void read_premib_configs(void);
00045
00046 void read_config_print_usage(const char *lead);
00047 void config_perror(const char *);
00048 void config_pwarn(const char *);
00049
00050 #ifdef __cplusplus
00051 }
00052 #endif
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063 #include <net-snmp/library/snmp_api.h>
00064
00065 #include <net-snmp/library/read_config.h>
00066 #include <net-snmp/library/default_store.h>
00067
00068 #include <stdio.h>
00069 #include <net-snmp/library/snmp_parse_args.h>
00070 #include <net-snmp/library/snmp_enum.h>
00071 #include <net-snmp/library/vacm.h>
00072
00073 #endif