Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:26
erlang
2874-snmp-Types-and-specs-for-snmp_notification...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2874-snmp-Types-and-specs-for-snmp_notification_mib-delet.patch of Package erlang
From 240fe79b526efeb7acbf695df3502c0717479b1b Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Mon, 15 Jan 2024 18:48:06 +0100 Subject: [PATCH 54/67] [snmp] Types and specs for snmp_notification_mib:delete_notify/1 --- lib/snmp/doc/src/snmp_notification_mib.xml | 7 +------ lib/snmp/src/agent/snmp_notification_mib.erl | 5 +++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/snmp/doc/src/snmp_notification_mib.xml b/lib/snmp/doc/src/snmp_notification_mib.xml index caf5d6cd36..55d4e9eb25 100644 --- a/lib/snmp/doc/src/snmp_notification_mib.xml +++ b/lib/snmp/doc/src/snmp_notification_mib.xml @@ -142,13 +142,8 @@ </func> <func> - <name since="">delete_notify(Key) -> Ret</name> + <name name="delete_notify" arity="1" clause_i="1" since=""/> <fsummary>Delete one notify definition</fsummary> - <type> - <v>Key = term()</v> - <v>Ret = ok | {error, Reason}</v> - <v>Reason = term()</v> - </type> <desc> <p>Delete a notify definition from the agent config.</p> </desc> diff --git a/lib/snmp/src/agent/snmp_notification_mib.erl b/lib/snmp/src/agent/snmp_notification_mib.erl index 58167f8f54..8eef25eb1e 100644 --- a/lib/snmp/src/agent/snmp_notification_mib.erl +++ b/lib/snmp/src/agent/snmp_notification_mib.erl @@ -193,6 +193,11 @@ add_notify(Name, Tag, Type) -> {error, Error} end. + +-spec delete_notify(Key) -> ok | {error, Reason} when + Key :: term(), + Reason :: term(). + %% FIXME: does not work with mnesia delete_notify(Key) -> case table_del_row(snmpNotifyTable, Key) of -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor