[asterisk-dev] [Code Review] Opaquify some ast_channel typedefs, file descriptor arrays, and the _softhangup flag

wedhorn reviewboard at asterisk.org
Thu Mar 1 00:05:46 CST 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1784/#review5685
-----------------------------------------------------------



/trunk/channels/chan_dahdi.c
<https://reviewboard.asterisk.org/r/1784/#comment10399>

    Shouldn't this just be a simple softhangup_internal_flag_add?


Apart from the above, it appears there's only a single use for softhangup_internal_flag_set in ast_do_masquerade (line 6651 of channel.c). While I appreciate it's a bit off topic for your patch, does anyone actually see a reason for removing all of the _softhangup flags before setting it to AST_SOFTHANGUP_DEV? If not, this could be changed to flag_add and flag_set be removed.

- wedhorn


On Feb. 29, 2012, 1:04 p.m., Terry Wilson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1784/
> -----------------------------------------------------------
> 
> (Updated Feb. 29, 2012, 1:04 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> More oapquification. Most of the array stuff was done manually. So look carefully.
> 
> 
> Diffs
> -----
> 
>   /trunk/addons/chan_ooh323.c 357542 
>   /trunk/apps/app_dahdibarge.c 357542 
>   /trunk/apps/app_dahdiras.c 357542 
>   /trunk/apps/app_directed_pickup.c 357542 
>   /trunk/apps/app_dumpchan.c 357542 
>   /trunk/apps/app_flash.c 357542 
>   /trunk/apps/app_meetme.c 357542 
>   /trunk/apps/app_queue.c 357542 
>   /trunk/channels/chan_agent.c 357542 
>   /trunk/channels/chan_dahdi.c 357542 
>   /trunk/channels/chan_gtalk.c 357542 
>   /trunk/channels/chan_h323.c 357542 
>   /trunk/channels/chan_iax2.c 357542 
>   /trunk/channels/chan_jingle.c 357542 
>   /trunk/channels/chan_mgcp.c 357542 
>   /trunk/channels/chan_misdn.c 357542 
>   /trunk/channels/chan_phone.c 357542 
>   /trunk/channels/chan_sip.c 357542 
>   /trunk/channels/chan_skinny.c 357542 
>   /trunk/channels/chan_unistim.c 357542 
>   /trunk/channels/chan_vpb.cc 357542 
>   /trunk/channels/console_video.c 357542 
>   /trunk/channels/sig_analog.c 357542 
>   /trunk/channels/sig_pri.c 357542 
>   /trunk/channels/sig_ss7.c 357542 
>   /trunk/funcs/func_channel.c 357542 
>   /trunk/include/asterisk/channel.h 357542 
>   /trunk/main/autoservice.c 357542 
>   /trunk/main/channel.c 357542 
>   /trunk/main/channel_internal_api.c 357542 
>   /trunk/main/cli.c 357542 
>   /trunk/main/dsp.c 357542 
>   /trunk/main/features.c 357542 
>   /trunk/main/file.c 357542 
>   /trunk/main/pbx.c 357542 
>   /trunk/res/snmp/agent.c 357542 
> 
> Diff: https://reviewboard.asterisk.org/r/1784/diff
> 
> 
> Testing
> -------
> 
> unit tests and testsuite look good.
> 
> 
> Thanks,
> 
> Terry
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120301/fb84ed3f/attachment.htm>


More information about the asterisk-dev mailing list