diff options
author | Micael Karlberg <[email protected]> | 2019-03-27 11:00:53 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-03-28 17:14:56 +0100 |
commit | b528d830a741f6611b704ddcce1e702b41757c36 (patch) | |
tree | a05855e7eb8d315494331f4662ccb535705d395f /lib/snmp/src/agent/snmpa_get_mechanism.erl | |
parent | c842e38a1be4a92f14a309a6ccb66f33b5585088 (diff) | |
download | otp-b528d830a741f6611b704ddcce1e702b41757c36.tar.gz otp-b528d830a741f6611b704ddcce1e702b41757c36.tar.bz2 otp-b528d830a741f6611b704ddcce1e702b41757c36.zip |
[snmp|agent] Add the net-if data (Extra) argument to get-callbacks
Added the Extra (net-if data) argument to all the get-
mechanism callback functions.
OTP-15691
Diffstat (limited to 'lib/snmp/src/agent/snmpa_get_mechanism.erl')
-rw-r--r-- | lib/snmp/src/agent/snmpa_get_mechanism.erl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/snmp/src/agent/snmpa_get_mechanism.erl b/lib/snmp/src/agent/snmpa_get_mechanism.erl index 7be4ae79a2..744a6529e1 100644 --- a/lib/snmp/src/agent/snmpa_get_mechanism.erl +++ b/lib/snmp/src/agent/snmpa_get_mechanism.erl @@ -35,7 +35,8 @@ %% mibview (local). -callback do_get(UnsortedVBs :: [snmp:varbind()], - IsNotification :: boolean()) -> + IsNotification :: boolean(), + Extra :: term()) -> {noError, 0, ResVBs :: [snmp:varbind()]} | {ErrStatus :: snmp:error_status(), ErrIndex :: snmp:error_index(), []}. @@ -44,7 +45,8 @@ -callback do_get(MibView :: snmp_view_based_acm_mib:mibview(), UnsortedVBs :: [snmp:varbind()], - IsNotification :: boolean()) -> + IsNotification :: boolean(), + Extra :: term()) -> {noError, 0, ResVBs :: [snmp:varbind()]} | {ErrStatus :: snmp:error_status(), ErrIndex :: snmp:error_index(), []}. @@ -56,7 +58,8 @@ %% Purpose: Handles "get-next-requests". -callback do_get_next(MibView :: snmp_view_based_acm_mib:mibview(), - UnsortedVBs :: [snmp:varbind()]) -> + UnsortedVBs :: [snmp:varbind()], + Extra :: term()) -> {noError, 0, ResVBs :: [snmp:varbind()]} | {ErrStatus :: snmp:error_status(), ErrIndex :: snmp:error_index(), []}. @@ -70,6 +73,7 @@ MaxRepetitions :: non_neg_integer(), PduMS :: pos_integer(), VBs :: [snmp:varbind()], - MaxVBs :: pos_integer()) -> + MaxVBs :: pos_integer(), + Extra :: term()) -> {noError, 0, ResVBs :: [snmp:varbind()]} | {ErrStatus :: snmp:error_status(), ErrIndex :: snmp:error_index(), []}. |