writing new classes........

Eddie Kohler kohler at icir.org
Mon Jan 20 09:26:33 EST 2003


Not a Click element? There are two ways to do it.

1. Stick the .hh in include/click, the .cc in lib/, and add the .o to
GENERIC_OBJS in {userlevel,linuxmodule,bsdmodule,ns}/Makefile.in .

2. Stick both files in elements/WHATEVER, and add an ELEMENT_PROVIDES(NAME)
line to the bottom of the source file, where NAME is a descriptive name for
the capability your file provides. See elements/grid/amoeba.cc for an
example.

Eddie




More information about the click mailing list