Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
7193-snmp-Types-and-specs-for-snmp_notification...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7193-snmp-Types-and-specs-for-snmp_notification_mib-condf.patch of Package erlang
From 84e445112252500e1c1b63d52c0a8f32cf2025c6 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Mon, 15 Jan 2024 18:38:24 +0100 Subject: [PATCH 53/67] [snmp] Types and specs for snmp_notification_mib:condfigure/1 --- lib/snmp/doc/src/snmp_notification_mib.xml | 34 +++++++++----------- lib/snmp/src/agent/snmp_notification_mib.erl | 8 +++-- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/lib/snmp/doc/src/snmp_notification_mib.xml b/lib/snmp/doc/src/snmp_notification_mib.xml index b9eac7c41c..caf5d6cd36 100644 --- a/lib/snmp/doc/src/snmp_notification_mib.xml +++ b/lib/snmp/doc/src/snmp_notification_mib.xml @@ -79,32 +79,28 @@ <funcs> <func> - <name since="">configure(ConfDir) -> void()</name> + <name name="configure" arity="1" clause_i="1" since=""/> <fsummary>Configure the SNMP-NOTIFICATION-MIB</fsummary> - <type> - <v>ConfDir = string()</v> - </type> <desc> <p>This function is called from the supervisor at system - start-up. - </p> + start-up. </p> <p>Inserts all data in the configuration files into the - database and destroys all old rows with StorageType - <c>volatile</c>. The rows created from the configuration file - will have StorageType <c>nonVolatile</c>. - </p> - <p>If an error is found in the configuration file, it is - reported using the function <c>config_err/2</c> of the - error report module, - and the function fails with reason <c>configuration_error</c>. - </p> + database and destroys all old rows with StorageType + <c>volatile</c>. The rows created from the configuration file + will have StorageType <c>nonVolatile</c>. </p> + <p>If an error is found in the configuration file, it is + reported using the function <c>config_err/2</c> of the + error report module, + and the function fails with reason <c>configuration_error</c>. </p> <p><c>ConfDir</c> is a string which points to the directory - where the configuration files are found. - </p> - <p>The configuration file read is: <c>notify.conf</c>. - </p> + where the configuration files are found. </p> + + <p>The configuration file read is: <c>notify.conf</c>. </p> + + <marker id="reconfigure"></marker> </desc> </func> + <func> <name since="">reconfigure(ConfDir) -> void()</name> <fsummary>Configure the SNMP-NOTIFICATION-MIB</fsummary> diff --git a/lib/snmp/src/agent/snmp_notification_mib.erl b/lib/snmp/src/agent/snmp_notification_mib.erl index 69c941ed0b..58167f8f54 100644 --- a/lib/snmp/src/agent/snmp_notification_mib.erl +++ b/lib/snmp/src/agent/snmp_notification_mib.erl @@ -63,7 +63,11 @@ %% Returns: ok %% Fails: exit(configuration_error) %%----------------------------------------------------------------- -configure(Dir) -> + +-spec configure(ConfDir) -> snmp:void() when + ConfDir :: string(). + +configure(ConfDir) -> set_sname(), case db(snmpNotifyTable) of {_, mnesia} -> @@ -76,7 +80,7 @@ configure(Dir) -> gc_tabs(); false -> ?vlog("notification table does not exist: reconfigure",[]), - reconfigure(Dir) + reconfigure(ConfDir) end end. -- 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