Summary:ASTERISK-04155: [patch] functions to register/unregister multiple cli entries
Reporter:Luigi Rizzo (rizzo)Labels:
Date Opened:2005-05-13 02:31:57Date Closed:2008-01-15 15:34:30.000-0600
Versions:Frequency of
Environment:Attachments:( 0) cli.patch
Description:(disclaimer on file)
many apps register/unregister multiple cli entries by calling    
ast_cli_register() and its dual multiple times, or redefining
local looping functions.    
The attached patch provides global methods for this, and examples of
use (mostly whitespace changes to move all structs into a
single array).
A lot more patches will come if there is interest and this code is committed.

On passing, also fix some comments in cli.h

Affected files:
       include/asterisk/cli.h          prototypes  
       cli.c                           definitions
       frame.c                         example
       channels/chan_sip.c             example
Comments:By: Kevin P. Fleming (kpfleming) 2005-05-14 22:58:47

Committed to CVS HEAD with a minor modification (changed the functions to use _multiple suffix instead of _n, to make it clearer what they do). Thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:34:30.000-0600

Repository: asterisk
Revision: 5662

U   trunk/channels/chan_sip.c
U   trunk/cli.c
U   trunk/frame.c
U   trunk/include/asterisk/cli.h

r5662 | kpfleming | 2008-01-15 15:34:30 -0600 (Tue, 15 Jan 2008) | 2 lines

add functions to register/unregister multiple CLI commands in a single operation (bug ASTERISK-4155, with minor mods)