[OpenSER-Devel] SF.net SVN: openser: [3443] trunk

Dan Pascu dan at ag-projects.com
Wed Dec 19 16:20:52 UTC 2007


Henning,

the code you wrote is uncompilable with a C compiler (declaring variables 
after code statements is a C++ extension). Besides why do you need to 
pass real variables to that function? You can use NULL for the arguments 
you do not care for. Or if you do not wish to pass 6 arguments you may 
declare your own function type and use that instead with a simple 
typecast when assigned:

typedef int rd_acc_function(struct sip_msg *m, char *reason, char *table);

rd_acc_function *rd_acc_fct = 0;

rd_acc_fct = (rd_acc_function*)fct;

and if defined like that, code works without any changes.

On Wednesday 19 December 2007, Henning Westerholt wrote:
> Revision: 3443
>           http://openser.svn.sourceforge.net/openser/?rev=3443&view=rev
> Author:   henningw
> Date:     2007-12-19 07:17:35 -0800 (Wed, 19 Dec 2007)
>
> Log Message:
> -----------
> - change module function interface to a static one, as discussed on the
> list - fix compilation for uac_redirect module
>
> Modified Paths:
> --------------
>     trunk/modules/uac_redirect/rd_funcs.c
>     trunk/sr_module.h
>
>
> This was sent by the SourceForge.net collaborative development
> platform, the world's largest Open Source development site.
>
> _______________________________________________
> Devel mailing list
> Devel at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/devel



-- 
Dan



More information about the Devel mailing list