[Click] cpElement
Koen Segers
KoenSegers at scarlet.be
Fri Jan 20 13:05:43 EST 2006
Where can I find the exact meaning of cpElement as used in the configure
method? I made a design where every element is configured with this
information element. But I suspect the element is copied, although I want in
every element a pointer to only 1 element (pointer).
Right now I have coded it this way:
In my header:
PDHCPInfo* _info;
In the configure method:
if (cp_va_parse(conf, this, errh, cpElement, "PDHCPInfo", &_info, cpEnd) <0)
etc...
I saw in the click documentation that cpElement results in a pointer to
pointer. Therefore I use the & (it also doesn't compile without one).
greetz
--
Koen Segers
<koensegers at scarlet.be>
<http://eddyvite.dyndns.org>
More information about the click
mailing list