Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:26
erlang
2854-snmp-Types-and-specs-for-snmp_framework_mi...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2854-snmp-Types-and-specs-for-snmp_framework_mib-delete_c.patch of Package erlang
From ec2d23584f3752c5710a8a658f773402404e7c88 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Fri, 12 Jan 2024 10:21:56 +0100 Subject: [PATCH 34/67] [snmp] Types and specs for snmp_framework_mib:delete_context/1 --- lib/snmp/doc/src/snmp_framework_mib.xml | 7 +------ lib/snmp/src/agent/snmp_framework_mib.erl | 5 +++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/snmp/doc/src/snmp_framework_mib.xml b/lib/snmp/doc/src/snmp_framework_mib.xml index 38842185a0..100a23bb97 100644 --- a/lib/snmp/doc/src/snmp_framework_mib.xml +++ b/lib/snmp/doc/src/snmp_framework_mib.xml @@ -120,13 +120,8 @@ </desc> </func> <func> - <name since="">delete_context(Key) -> Ret</name> + <name name="delete_context" arity="1" clause_i="1" since=""/> <fsummary>Delete one context</fsummary> - <type> - <v>Key = term()</v> - <v>Ret = ok | {error, Reason}</v> - <v>Reason = term()</v> - </type> <desc> <p>Delete a context from the agent config.</p> </desc> diff --git a/lib/snmp/src/agent/snmp_framework_mib.erl b/lib/snmp/src/agent/snmp_framework_mib.erl index c26458c25f..71670f5caf 100644 --- a/lib/snmp/src/agent/snmp_framework_mib.erl +++ b/lib/snmp/src/agent/snmp_framework_mib.erl @@ -491,6 +491,11 @@ add_context(Ctx) -> {error, Error} end. + +-spec delete_context(Key) -> ok | {error, Reason} when + Key :: term(), + Reason :: term(). + %% FIXME: does not work with mnesia delete_context(Key) -> case table_del_row(intContextTable, 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