Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:26
erlang
2029-megaco-Types-and-spec-for-megaco-info-0.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2029-megaco-Types-and-spec-for-megaco-info-0.patch of Package erlang
From d0b4bb6e58155a684b6a975ef8b7a7f04b96b133 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Tue, 2 Jan 2024 17:37:31 +0100 Subject: [PATCH 19/46] [megaco] Types and spec for megaco:info/0 OTP-18920 --- lib/megaco/doc/src/megaco.xml | 5 +---- lib/megaco/src/app/megaco.erl | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/megaco/doc/src/megaco.xml b/lib/megaco/doc/src/megaco.xml index 223cc2b589..ba5bd57356 100644 --- a/lib/megaco/doc/src/megaco.xml +++ b/lib/megaco/doc/src/megaco.xml @@ -1708,11 +1708,8 @@ megaco_incr_timer() = #megaco_incr_timer{} </func> <func> - <name since="">info() -> Info</name> + <name name="info" arity="0" clause_i="1" since=""/> <fsummary>All the information of the application</fsummary> - <type> - <v>Info = [{Key, Value}]</v> - </type> <desc> <p>This function produces a list of information about the megaco application. Such as users and their config, connections diff --git a/lib/megaco/src/app/megaco.erl b/lib/megaco/src/app/megaco.erl index bcdaeec164..c3c146d57f 100644 --- a/lib/megaco/src/app/megaco.erl +++ b/lib/megaco/src/app/megaco.erl @@ -320,6 +320,11 @@ update_conn_info(ConnHandle, Item, Value) -> %% All information for the application %%----------------------------------------------------------------- +-spec info() -> Info when + Info :: [{Key, Value}], + Key :: atom(), + Value :: term(). + info() -> Stats = case get_stats() of -- 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