[sr-dev] question about module function arguments

Juha Heinanen jh at tutpro.com
Sat Oct 9 16:25:32 CEST 2010


i understood that module functions can now have an arbitrary number of
string, int and pseudo var arguments, where string arguments can
possibly also contain pseudo variables.

some time ago i asked an example on how this is done, but didn't get any
reply.  so i'll try again.  for example, allow_trusted function is
now defined like this:

	{"allow_trusted",  (cmd_function)allow_trusted_2,  2, fixup_pvar_pvar,
	        fixup_free_pvar_pvar, REQUEST_ROUTE | FAILURE_ROUTE},

how can i add a third argument to the function without needing to define
yet another fixup_pvar_pvar_something?

-- juha



More information about the sr-dev mailing list