Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:25
erlang
4150-megaco-Types-and-spec-for-megaco-stop_user...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 4150-megaco-Types-and-spec-for-megaco-stop_user-1.patch of Package erlang
From 4c7de4ebd8a8ff20aea38dfb023d003293177712 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Thu, 4 Jan 2024 18:17:37 +0100 Subject: [PATCH 30/46] [megaco] Types and spec for megaco:stop_user/1 OTP-18920 --- lib/megaco/doc/src/megaco.xml | 6 +----- lib/megaco/src/app/megaco.erl | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/megaco/doc/src/megaco.xml b/lib/megaco/doc/src/megaco.xml index 367df4175b..ac9112ce13 100644 --- a/lib/megaco/doc/src/megaco.xml +++ b/lib/megaco/doc/src/megaco.xml @@ -1208,12 +1208,8 @@ megaco_incr_timer() = #megaco_incr_timer{} </func> <func> - <name since="">stop_user(UserMid) -> ok | {error, Reason}</name> + <name name="stop_user" arity="1" clause_i="1" since=""/> <fsummary>Delete the configuration of a user</fsummary> - <type> - <v>UserMid = megaco_mid()</v> - <v>Reason = term()</v> - </type> <desc> <p>Delete the configuration of a user</p> <p>Requires that the user does not have any active connection.</p> diff --git a/lib/megaco/src/app/megaco.erl b/lib/megaco/src/app/megaco.erl index 39e2ece23b..cd5ad69377 100644 --- a/lib/megaco/src/app/megaco.erl +++ b/lib/megaco/src/app/megaco.erl @@ -285,6 +285,10 @@ start_user(UserMid, Config) -> %% Delete the configuration of a user %%----------------------------------------------------------------- +-spec stop_user(UserMid) -> ok | {error, Reason} when + UserMid :: mid(), + Reason :: term(). + stop_user(UserMid) -> megaco_config:stop_user(UserMid). -- 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