aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/agent
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2013-05-28 17:51:43 +0200
committerMicael Karlberg <[email protected]>2013-05-28 17:51:43 +0200
commit0275959ca4db104e1749efe7beedfdadf204dfc4 (patch)
tree1111c4ce6300b5a4b2ba6902b4d29ebf7013256f /lib/snmp/src/agent
parenta6c76247fa67e86c12773e2d997c66c9f794b002 (diff)
downloadotp-0275959ca4db104e1749efe7beedfdadf204dfc4.tar.gz
otp-0275959ca4db104e1749efe7beedfdadf204dfc4.tar.bz2
otp-0275959ca4db104e1749efe7beedfdadf204dfc4.zip
[snmp/agent] Corrected the mib_storage type
Diffstat (limited to 'lib/snmp/src/agent')
-rw-r--r--lib/snmp/src/agent/snmpa_mib_data.erl27
1 files changed, 11 insertions, 16 deletions
diff --git a/lib/snmp/src/agent/snmpa_mib_data.erl b/lib/snmp/src/agent/snmpa_mib_data.erl
index ffacdd5b3a..368c714134 100644
--- a/lib/snmp/src/agent/snmpa_mib_data.erl
+++ b/lib/snmp/src/agent/snmpa_mib_data.erl
@@ -28,28 +28,23 @@
%% These types should really be defined elsewhere...
-export_type([
mib_storage/0,
- mib_storage_dir/0,
- mib_storage_action/0,
-
+ mib_storage_opt/0,
+ mib_storage_module/0,
+ mib_storage_options/0,
mib_view/0,
mib_view_elem/0,
mib_view_mask/0,
mib_view_inclusion/0
]).
--type mib_storage() :: ets |
- {ets, Dir :: mib_storage_dir()} |
- {ets, Dir :: mib_storage_dir(), Action :: mib_storage_action()} |
- dets |
- {dets, Dir :: mib_storage_dir()} |
- {dets, Dir :: mib_storage_dir(), Action :: mib_storage_action()} |
- mnesia |
- {mnesia, Nodes :: [node()]} |
- {mnesia, Nodes :: [node()],
- Action :: mib_storage_action()}.
-
--type mib_storage_dir() :: default | string().
--type mib_storage_action() :: clear | keep.
+-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().
-type mib_view() :: [mib_view_elem()].
-type mib_view_elem() :: {SubTree :: snmp:oid(),