Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:26
erlang
2844-snmp-Types-and-specs-for-snmp-stop-0.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2844-snmp-Types-and-specs-for-snmp-stop-0.patch of Package erlang
From 261686025621aa013d4845da80769a4e418c1f5e Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Thu, 11 Jan 2024 08:50:17 +0100 Subject: [PATCH 24/67] [snmp] Types and specs for snmp:stop/0 Also added this function to the documentation. --- lib/snmp/doc/src/snmp.xml | 13 +++++++++++++ lib/snmp/src/app/snmp.erl | 3 +++ 2 files changed, 16 insertions(+) diff --git a/lib/snmp/doc/src/snmp.xml b/lib/snmp/doc/src/snmp.xml index 39f58270a5..70d4499a0d 100644 --- a/lib/snmp/doc/src/snmp.xml +++ b/lib/snmp/doc/src/snmp.xml @@ -211,6 +211,19 @@ <p>See <seeerl marker="kernel:application">application</seeerl> for more info.</p> + <marker id="stop"></marker> + </desc> + </func> + + <func> + <name name="stop" arity="0" clause_i="1" since=""/> + <fsummary>Stop the SNMP application</fsummary> + <desc> + <p>Stops the SNMP application.</p> + <p></p> + <p>See <seeerl marker="kernel:application">application</seeerl> + for more info.</p> + <marker id="start_agent"></marker> </desc> </func> diff --git a/lib/snmp/src/app/snmp.erl b/lib/snmp/src/app/snmp.erl index 525a7197b3..af63a05a28 100644 --- a/lib/snmp/src/app/snmp.erl +++ b/lib/snmp/src/app/snmp.erl @@ -230,6 +230,9 @@ start(Type) -> application:start(?APPLICATION, Type). +-spec stop() -> ok | {error, Reason} when + Reason :: term(). + stop() -> application:stop(?APPLICATION). -- 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