Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
7170-snmp-Types-and-specs-for-snmp_community_mi...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7170-snmp-Types-and-specs-for-snmp_community_mib-delete_c.patch of Package erlang
From 0c80ffb3f1ebbdaf03318415352b4e58f09d6e7a Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Thu, 11 Jan 2024 14:51:23 +0100 Subject: [PATCH 30/67] [snmp] Types and specs for snmp_community_mib:delete_community/1 --- lib/snmp/doc/src/snmp_community_mib.xml | 7 +------ lib/snmp/src/agent/snmp_community_mib.erl | 5 +++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/snmp/doc/src/snmp_community_mib.xml b/lib/snmp/doc/src/snmp_community_mib.xml index 258eaa3f6f..ccecc10a91 100644 --- a/lib/snmp/doc/src/snmp_community_mib.xml +++ b/lib/snmp/doc/src/snmp_community_mib.xml @@ -170,13 +170,8 @@ </func> <func> - <name since="">delete_community(Key) -> Ret</name> + <name name="delete_community" arity="1" clause_i="1" since=""/> <fsummary>Delete one community</fsummary> - <type> - <v>Key = term()</v> - <v>Ret = ok | {error, Reason}</v> - <v>Reason = term()</v> - </type> <desc> <p>Delete a community from the agent config.</p> </desc> diff --git a/lib/snmp/src/agent/snmp_community_mib.erl b/lib/snmp/src/agent/snmp_community_mib.erl index b373bcc7c3..f4c6d6fde0 100644 --- a/lib/snmp/src/agent/snmp_community_mib.erl +++ b/lib/snmp/src/agent/snmp_community_mib.erl @@ -254,6 +254,11 @@ do_add_community(Community) -> {error, {C, E, S}} end. + +-spec delete_community(Key) -> ok | {error, Reason} when + Key :: term(), + Reason :: term(). + %% FIXME: does not work with mnesia delete_community(Key) -> invalidate_cache(Key), -- 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