File 7124-snmp-Add-handle_invalid_result-to-snmpm_user-callbac.patch of Package erlang (Revision 9f7ba17abd41d405759f6f11f4d7ded6)
Currently displaying revision 9f7ba17abd41d405759f6f11f4d7ded6 , Show latest
xxxxxxxxxx
1
From 0bebc4324493cd1abb23051f476c994daa649d3f Mon Sep 17 00:00:00 2001
2
From: Lukas Larsson <lukas@erlang.org>
3
Date: Wed, 27 Sep 2023 21:27:25 +0200
4
Subject: [PATCH 4/5] snmp: Add handle_invalid_result to snmpm_user callbacks
5
6
---
7
lib/snmp/src/manager/snmpm_user.erl | 6 +++++-
8
1 file changed, 5 insertions(+), 1 deletion(-)
9
10
diff --git a/lib/snmp/src/manager/snmpm_user.erl b/lib/snmp/src/manager/snmpm_user.erl
11
index 9d0077449a..c256bf050f 100644
12
--- a/lib/snmp/src/manager/snmpm_user.erl
13
+++ b/lib/snmp/src/manager/snmpm_user.erl
14
15
RTargetName :: snmpm:target_name(),
16
AgentConfig :: [snmpm:agent_config()]}.
17
18
+-callback handle_invalid_result(In, Out) -> no_return() when
19
+ In :: {Fun :: atom(), Args :: list()},
20
+ Out :: {crash, CrashInfo} | {result, InvalidResult :: term()},
21
+ CrashInfo :: {ErrorType :: atom(), Error :: term(), Stacktrace :: erlang:stacktrace()}.
22
23
-
24
+-optional_callbacks([handle_invalid_result/2]).
25
--
26
2.35.3
27
28