1%%
2%% %CopyrightBegin%
3%%
4%% Copyright Ericsson AB 2004-2016. All Rights Reserved.
5%%
6%% Licensed under the Apache License, Version 2.0 (the "License");
7%% you may not use this file except in compliance with the License.
8%% You may obtain a copy of the License at
9%%
10%%     http://www.apache.org/licenses/LICENSE-2.0
11%%
12%% Unless required by applicable law or agreed to in writing, software
13%% distributed under the License is distributed on an "AS IS" BASIS,
14%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15%% See the License for the specific language governing permissions and
16%% limitations under the License.
17%%
18%% %CopyrightEnd%
19%%
20-module(snmpa_notification_filter).
21
22-export([behaviour_info/1]).
23
24behaviour_info(callbacks) ->
25    [{handle_notification, 2}];
26behaviour_info(_) ->
27    undefined.
28
29%% handle_notification(Notification, Data) -> Reply
30%% Notification -> notification() | trap()
31%% Data -> term()
32%% Reply -> send | {send, NewNotif} | ignore
33%% NewNotif -> notification() | trap()
34%%
35%% send -> This means it is ok for this filter to send the notification as is
36%% {send, NewNotif} -> Send this notification instead
37%% dont_sent -> Dont send this notification.
38