[Devel] exporting pseudo variables
klaus.mailinglists at pernau.at
Tue May 2 12:03:21 CEST 2006
Is it possible to do the parsing of the pseudo variable in the module?
E.g. for tls there will be similar paramters, for the peer certificate
and the local certificate. Is it possible to register only a prefix,
e.g. $tls_ and parse the latter in the module itself?
Daniel-Constantin Mierla wrote:
> On 04/28/2006 12:05 PM, Klaus Darilion wrote:
>> I'm studying how to export pseudo variables.
>> In tm.c there is this code:
>> if(xl_add_extra("T_branch_idx", it_get_tm_branch_idx, 100 )!=0)
>> LOG(L_ERR,"ERROR:tm:mod_init: failed to register pvar "
>> return -1;
>> Thus I guess the exported pseudo variable is called $T_branch_idx, but
>> the README says:
>> $T_branch_index - the index (starting with 1 for the first branch)...
>> Is guess there is a typo.
>> Further, do we have a schema how to name the exported pseudo variables?
> There is none, but the name should be suggestive as much as possible.
> Somehow, we should find one to avoid duplicates.
>> Devel mailing list
>> Devel at openser.org
More information about the Devel