[Click] How to call handlers of elements declared in a .click file from another element.

Momina Khan momina.azam at gmail.com
Sun Jun 16 14:05:08 EDT 2013


Hi,

I need to call live_reconfigure handlers of elements A and B (to
differentiate) declared in my configuration file from inside another
element C.

element C has to call live_reconfigure on elements A and C periodically
after every timescale x. However i cannot seem to find a way to give the
references of classes A and B to class C. Since all are independently
declared in the .click configuration file.

I tried element->router() and thought that if i got the router reference
pointer i could find other elements registered with the same router using
the router->find() method but element->router() returns a NULL.
If i am thinking in the wrong direction plz correct me.

thank you!
momina


More information about the click mailing list