diff options
author | Micael Karlberg <[email protected]> | 2013-05-29 11:44:05 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2013-05-29 11:44:05 +0200 |
commit | a49f52da6e07f438686b66e71db8a4865f31af6c (patch) | |
tree | 31482d5813c4b23c68f7e94770578b99e39b34da /lib/snmp/src/agent/snmpa.erl | |
parent | 0275959ca4db104e1749efe7beedfdadf204dfc4 (diff) | |
download | otp-a49f52da6e07f438686b66e71db8a4865f31af6c.tar.gz otp-a49f52da6e07f438686b66e71db8a4865f31af6c.tar.bz2 otp-a49f52da6e07f438686b66e71db8a4865f31af6c.zip |
[snmp/agent] Moved agent config type definition to main agent interface module
Diffstat (limited to 'lib/snmp/src/agent/snmpa.erl')
-rw-r--r-- | lib/snmp/src/agent/snmpa.erl | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/snmp/src/agent/snmpa.erl b/lib/snmp/src/agent/snmpa.erl index 0ce1f611b2..14b93439df 100644 --- a/lib/snmp/src/agent/snmpa.erl +++ b/lib/snmp/src/agent/snmpa.erl @@ -112,7 +112,13 @@ -export([print_mib_info/0, print_mib_tables/0, print_mib_variables/0]). -export_type([ - me/0 + me/0, + + %% Agent config types + mib_storage/0, + mib_storage_opt/0, + mib_storage_module/0, + mib_storage_options/0 ]). -deprecated([{old_info_format, 1, next_major_release}]). @@ -131,6 +137,16 @@ -type me() :: #me{}. +%% Agent config types +-type mib_storage() :: [mib_storage_opt()]. +-type mib_storage_opt() :: {module, mib_storage_module()} | + {options, mib_storage_options()}. + +%% Module implementing the snmpa_mib_storage behaviour +-type mib_storage_module() :: atom(). +%% Options specific to the above module +-type mib_storage_options() :: list(). + %%----------------------------------------------------------------- %% This utility function is used to convert an old SNMP application |