Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:25
erlang
1541-snmp-Types-and-specs-for-snmp-start-0-1.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1541-snmp-Types-and-specs-for-snmp-start-0-1.patch of Package erlang
From ebb1325296ed8d487b7e941f535b1ef9610cb4b6 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Wed, 10 Jan 2024 19:27:02 +0100 Subject: [PATCH 21/67] [snmp] Types and specs for snmp:start/0,1 --- lib/snmp/doc/src/snmp.xml | 13 ++++++------- lib/snmp/src/app/snmp.erl | 15 +++++++++++++-- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/lib/snmp/doc/src/snmp.xml b/lib/snmp/doc/src/snmp.xml index 9fe5d4f02f..8e72087521 100644 --- a/lib/snmp/doc/src/snmp.xml +++ b/lib/snmp/doc/src/snmp.xml @@ -202,15 +202,14 @@ </func> <func> - <name since="">start() -> ok | {error, Reason}</name> - <name since="">start(Type) -> ok | {error, Reason}</name> + <name name="start" arity="0" clause_i="1" since=""/> + <name name="start" arity="1" clause_i="1" since=""/> <fsummary>Start the SNMP application</fsummary> - <type> - <v>Type = start_type()</v> - </type> <desc> - <p>Starts the SNMP application.</p> - <p>See <seeerl marker="kernel:application">application</seeerl> for more info.</p> + <p>Starts the SNMP application.</p> + <p></p> + <p>See <seeerl marker="kernel:application">application</seeerl> + for more info.</p> <marker id="start_agent"></marker> </desc> diff --git a/lib/snmp/src/app/snmp.erl b/lib/snmp/src/app/snmp.erl index 7c88cd8c2e..bf3b43a3c0 100644 --- a/lib/snmp/src/app/snmp.erl +++ b/lib/snmp/src/app/snmp.erl @@ -208,11 +208,17 @@ %% Application %%----------------------------------------------------------------- +-spec start() -> ok | {error, Reason} when + Reason :: term(). + start() -> application:start(?APPLICATION). -stop() -> - application:stop(?APPLICATION). +-spec start(Type) -> ok | {error, Reason} when + Type :: p | permanent | + tr | transient | + te | temporary, + Reason :: term(). start(p) -> start(permanent); @@ -224,6 +230,11 @@ start(Type) -> application:start(?APPLICATION, Type). +stop() -> + application:stop(?APPLICATION). + + + start_agent() -> snmp_app:start_agent(). -- 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