Click
Loading...
Searching...
No Matches
package.hh
1#ifndef CLICK_PACKAGE_HH
2#define CLICK_PACKAGE_HH
3#include <click/vector.hh>
4#include <click/string.hh>
5CLICK_DECLS
6#ifndef CLICK_TOOL
7class Element;
8#endif
9CLICK_ENDDECLS
10
11extern "C" {
12
13void click_provide(const char *);
14void click_unprovide(const char *);
15bool click_has_provision(const char *);
16void click_public_packages(CLICK_NAME(Vector)<CLICK_NAME(String)> &);
17
18#if CLICK_LINUXMODULE
19int click_add_element_type(const char *element_name, CLICK_NAME(Element) *(*factory)(uintptr_t thunk), uintptr_t thunk, struct module *);
20int click_add_element_type_stable(const char *element_name, CLICK_NAME(Element) *(*factory)(uintptr_t thunk), uintptr_t thunk, struct module *);
21void click_remove_element_type(int);
22#elif !CLICK_TOOL
23int click_add_element_type(const char *element_name, CLICK_NAME(Element) *(*factory)(uintptr_t thunk), uintptr_t thunk);
24int click_add_element_type_stable(const char *element_name, CLICK_NAME(Element) *(*factory)(uintptr_t thunk), uintptr_t thunk);
25void click_remove_element_type(int);
26#endif
27
28}
29
30#endif
Base class for Click elements.
Definition element.hh:42
A string of characters.
Definition string.hh:22
Vector template.
Definition vector.hh:111
Click's String class.
Click's vector container template.