diff options
author | Micael Karlberg <[email protected]> | 2013-05-22 14:11:35 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2013-05-22 14:11:35 +0200 |
commit | 58309771ca695ed74dc92c72cca471b93eda8282 (patch) | |
tree | 3356c38cd34675d9ffd72942f78b2776d1dd0029 /lib/snmp/src/agent/snmpa_mib_storage.erl | |
parent | cac3dbfed3b3f703a012f52cd7093392a70a53cc (diff) | |
download | otp-58309771ca695ed74dc92c72cca471b93eda8282.tar.gz otp-58309771ca695ed74dc92c72cca471b93eda8282.tar.bz2 otp-58309771ca695ed74dc92c72cca471b93eda8282.zip |
[snmp/agent] Add info/2 and some record checks
Add a new function/2 to behaviour. Also changed returnj type for
info/1. Also make sure even ets and dets implementation(s)
check that the correct type is written.
Diffstat (limited to 'lib/snmp/src/agent/snmpa_mib_storage.erl')
-rw-r--r-- | lib/snmp/src/agent/snmpa_mib_storage.erl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/snmp/src/agent/snmpa_mib_storage.erl b/lib/snmp/src/agent/snmpa_mib_storage.erl index bbb9516ecb..5c3f76d89b 100644 --- a/lib/snmp/src/agent/snmpa_mib_storage.erl +++ b/lib/snmp/src/agent/snmpa_mib_storage.erl @@ -22,9 +22,7 @@ -export_type([ mib_storage_fields/0, mib_storage_table_type/0, - mib_storage_table_id/0, - - void/0 + mib_storage_table_id/0 ]). @@ -37,7 +35,6 @@ -type mib_storage_fields() :: [atom()]. -type mib_storage_table_type() :: set | bag. -type mib_storage_table_id() :: term(). --type void() :: term(). %% --------------------------------------------------------------- @@ -99,7 +96,7 @@ %% --------------------------------------------------------------- -callback delete(TabId :: mib_storage_table_id()) -> - void(). + snmp:void(). %% --------------------------------------------------------------- @@ -149,14 +146,17 @@ %% --------------------------------------------------------------- -%% info +%% info/1,2 %% %% Retrieve implementation dependent mib-storage table %% information. %% --------------------------------------------------------------- -callback info(TabId :: mib_storage_table_id()) -> - {ok, Info :: term()} | {error, Reason :: term()}. + Info :: term(). + +-callback info(TabId :: mib_storage_table_id(), Item :: atom()) -> + Info :: term(). %% --------------------------------------------------------------- @@ -166,7 +166,7 @@ %% --------------------------------------------------------------- -callback sync(TabId :: mib_storage_table_id()) -> - ok. + snmp:void(). %% --------------------------------------------------------------- |