Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang
erlang
1555-snmp-Types-and-specs-for-snmp_framework_mi...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1555-snmp-Types-and-specs-for-snmp_framework_mib-init-0.patch of Package erlang
From bf8318b91a87d78d17099e28fc3425f92e92a63b Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Fri, 12 Jan 2024 10:43:07 +0100 Subject: [PATCH 35/67] [snmp] Types and specs for snmp_framework_mib:init/0 --- lib/snmp/doc/src/snmp_framework_mib.xml | 10 +++++----- lib/snmp/src/agent/snmp_framework_mib.erl | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/snmp/doc/src/snmp_framework_mib.xml b/lib/snmp/doc/src/snmp_framework_mib.xml index 100a23bb97..2ef6d7e132 100644 --- a/lib/snmp/doc/src/snmp_framework_mib.xml +++ b/lib/snmp/doc/src/snmp_framework_mib.xml @@ -96,14 +96,14 @@ </desc> </func> <func> - <name since="">init() -> void()</name> + <name name="init" arity="0" clause_i="1" since=""/> <fsummary>Initialize the SNMP-FRAMEWORK-MIB</fsummary> <desc> <p>This function is called from the supervisor at system - start-up. - </p> - <p>Creates the necessary objects in the database if they do not - exist. It does not destroy any old values. </p> + start-up. </p> + + <p>Creates the necessary objects in the database if they do not + exist. It does not destroy any old values. </p> <marker id="add_context"></marker> </desc> diff --git a/lib/snmp/src/agent/snmp_framework_mib.erl b/lib/snmp/src/agent/snmp_framework_mib.erl index 71670f5caf..9b9c864399 100644 --- a/lib/snmp/src/agent/snmp_framework_mib.erl +++ b/lib/snmp/src/agent/snmp_framework_mib.erl @@ -84,6 +84,9 @@ %% Note that this function won't destroy any old values. %% This function should be called only once. %%----------------------------------------------------------------- + +-spec init() -> snmp:void(). + init() -> maybe_create_table(intContextTable), init_engine(). -- 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