[OpenSER-Devel] dialog module global vars

Ovidiu Sas osas at voipembedded.com
Thu May 29 21:17:33 CEST 2008


Hello Dan,

Are you refering to:
static struct dlg_cb_params params = {NULL, DLG_DIR_NONE, NULL, NULL};
?

It was modeled after:
static struct tmcb_params params = {0,0,0,0,0,0};
from t_hooks.c.

Ovidiu


On Thu, May 29, 2008 at 3:03 PM, Dan Pascu <dan at ag-projects.com> wrote:
>
> Ovidiu, I think you made these changes. Can you clarify why a global
> variable is used?
>
> On Tuesday 20 May 2008, Dan Pascu wrote:
>> Why is params in dlg_cb.c a global variable? I see no reason for it not
>> to be a local variable on the stack.
>
> --
> Dan
>
> _______________________________________________
> Devel mailing list
> Devel at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/devel
>



More information about the Devel mailing list