// -*- c-basic-offset: 4 -*- #ifndef CLICK_ETRAITS_HH #define CLICK_ETRAITS_HH #include struct Driver { enum { USERLEVEL = 0, LINUXMODULE = 1, BSDMODULE = 2, NSMODULE = 3, ALLMASK = 0xF, COUNT = 4, MULTITHREAD = COUNT }; static const char *name(int); static const char *multithread_name(int); static const char *requirement(int); static int driver(const String&); static int driver_mask(const String&); }; struct ElementTraits { String name; String cxx; String documentation_name; String header_file; String source_file; String port_count_code; String processing_code; String flow_code; String flags; String methods; String requirements; String provisions; String libs; String noexport; int def_index; int driver_mask; int name_next; ElementTraits(); static const ElementTraits &null_traits() { return the_null_traits; } bool allows_driver(int d) const { return (driver_mask&(1<