From e5cb42249f7fd5b730667150c9c19f10d2f215fd Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 25 Jul 2008 13:05:12 +0200 Subject: cleanup: split internal.h into several internal header files This patch cleanups the internal headers by splitting them into several logical pieces. Signed-off-by: Pablo Neira Ayuso --- include/internal/types.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/internal/types.h (limited to 'include/internal/types.h') diff --git a/include/internal/types.h b/include/internal/types.h new file mode 100644 index 0000000..a13722c --- /dev/null +++ b/include/internal/types.h @@ -0,0 +1,21 @@ +/* + * WARNING: Do *NOT* ever include this file, only for internal use! + */ +#ifndef _NFCT_TYPES_H_ +#define _NFCT_TYPES_H_ + +/* + * conntrack types + */ +typedef void (*set_attr)(struct nf_conntrack *ct, const void *value); +typedef const void *(*get_attr)(const struct nf_conntrack *ct); +typedef void (*copy_attr)(struct nf_conntrack *d, const struct nf_conntrack *o); +typedef void (*filter_attr)(struct nfct_filter *filter, const void *value); + +/* + * expectation types + */ +typedef void (*set_exp_attr)(struct nf_expect *exp, const void *value); +typedef const void *(*get_exp_attr)(const struct nf_expect *exp); + +#endif -- cgit v1.2.3