Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:25
erlang
1523-snmp-Types-and-specs-for-snmp-config-0.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1523-snmp-Types-and-specs-for-snmp-config-0.patch of Package erlang
From 6cb0cd57bfcade28050458a317b4484f7b1e1f08 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Tue, 9 Jan 2024 17:13:42 +0100 Subject: [PATCH 03/67] [snmp] Types and specs for snmp:config/0 --- lib/snmp/doc/src/snmp.xml | 22 ++++++++++------------ lib/snmp/src/app/snmp.erl | 5 +++++ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/lib/snmp/doc/src/snmp.xml b/lib/snmp/doc/src/snmp.xml index 28c2bf5748..03d9c8f084 100644 --- a/lib/snmp/doc/src/snmp.xml +++ b/lib/snmp/doc/src/snmp.xml @@ -101,24 +101,22 @@ <funcs> <func> - <name since="">config() -> ok | {error, Reason}</name> + <name name="config" arity="0" clause_i="1" since=""/> <fsummary>Configure with a simple interactive tool</fsummary> <desc> <p>A simple interactive configuration tool. Simple - configuration files can be generated, but more complex - configurations still have to be edited manually. - </p> + configuration files can be generated, but more complex + configurations still have to be edited manually. </p> <p>The tool is a textual based tool that asks some questions - and generates <c>sys.config</c> and <c>*.conf</c> files. - </p> + and generates <c>sys.config</c> and <c>*.conf</c> files. </p> <p><em>Note</em> that if the application shall support version 3, - then the crypto app must be started before running this function - (password generation).</p> - <p><em>Note</em> also that some of the configuration files for the - agent and manager share the same names. This means that - they have to be stored in <em>different</em> directories!</p> + then the crypto app must be started before running this function + (password generation). </p> + <p><em>Note</em> also that some of the configuration files for the + agent and manager share the same names. This means that + they have to be stored in <em>different</em> directories!</p> - <marker id="start"></marker> + <marker id="start"></marker> </desc> </func> diff --git a/lib/snmp/src/app/snmp.erl b/lib/snmp/src/app/snmp.erl index f53004252d..4c267760e9 100644 --- a/lib/snmp/src/app/snmp.erl +++ b/lib/snmp/src/app/snmp.erl @@ -207,6 +207,11 @@ start_manager(Type) -> snmp_app:start_manager(Type). +%%----------------------------------------------------------------- + +-spec config() -> ok | {error, Reason} when + Reason :: term(). + config() -> snmp_config:config(). -- 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