Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:25
erlang
1552-snmp-Types-and-specs-for-snmp_framework_mi...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1552-snmp-Types-and-specs-for-snmp_framework_mib-add_cont.patch of Package erlang
From 62c2ac90720a5d8cff1956fbac1640ae165abbdb Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Thu, 11 Jan 2024 15:21:13 +0100 Subject: [PATCH 32/67] [snmp] Types and specs for snmp_framework_mib:add_context/1 --- lib/snmp/doc/src/snmp_framework_mib.xml | 24 ++++++++++------------- lib/snmp/src/agent/snmp_framework_mib.erl | 5 +++++ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/lib/snmp/doc/src/snmp_framework_mib.xml b/lib/snmp/doc/src/snmp_framework_mib.xml index 9e7792443d..411581ecf3 100644 --- a/lib/snmp/doc/src/snmp_framework_mib.xml +++ b/lib/snmp/doc/src/snmp_framework_mib.xml @@ -106,24 +106,20 @@ start-up. </p> <p>Creates the necessary objects in the database if they do not - exist. It does not destroy any old values. - <marker id="add_context"></marker> -</p> + exist. It does not destroy any old values. </p> + + <marker id="add_context"></marker> </desc> </func> + <func> - <name since="">add_context(Ctx) -> Ret</name> - <fsummary>Added one context</fsummary> - <type> - <v>Ctx = string()</v> - <v>Ret = {ok, Key} | {error, Reason}</v> - <v>Key = term()</v> - <v>Reason = term()</v> - </type> + <name name="add_context" arity="1" clause_i="1" since=""/> + <fsummary>Add one context</fsummary> <desc> - <p>Adds a context to the agent config. - Equivalent to one line in the <c>context.conf</c> file.</p> - <marker id="delete_context"></marker> + <p>Adds a context to the agent config. + Equivalent to one line in the <c>context.conf</c> file.</p> + + <marker id="delete_context"></marker> </desc> </func> <func> diff --git a/lib/snmp/src/agent/snmp_framework_mib.erl b/lib/snmp/src/agent/snmp_framework_mib.erl index 9fc4bd8a7f..6f4e8fb0c4 100644 --- a/lib/snmp/src/agent/snmp_framework_mib.erl +++ b/lib/snmp/src/agent/snmp_framework_mib.erl @@ -464,6 +464,11 @@ table_del_row(Tab, Key) -> snmpa_mib_lib:table_del_row(db(Tab), Key). +-spec add_context(Ctx) -> {ok, Key} | {error, Reason} when + Ctx :: string(), + Key :: term(), + Reason :: term(). + %% FIXME: does not work with mnesia add_context(Ctx) -> case (catch check_context(Ctx)) 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