[OpenSER-Devel] pvap fixup to mod_fix.c?
Juha Heinanen
jh at tutpro.com
Mon Dec 17 16:17:33 UTC 2007
Bogdan-Andrei Iancu writes:
> But I see the following solution:
>
> - let's say we have all the generic fixup function made for param 1 (or
> no index). So, we have :
> fixup_regexp(void**param);
> fixup_int(void**param)
> fixup_str(void**param)
> fixup_pv(void**param)
>
> - and the function fixup will be something like:
> my_fixup(int index, void**param) {
> switch (index) {
> case 1:
> fixup_regexp(param);
> break;
> case 2:
> fixup_pv(param)
> break;
> }
> }
>
> What do you think about this?
bogdan,
your suggestion is ok to me.
-- juha
More information about the Devel
mailing list