From 93c459d603cc7a3d9cadeb0844364d5e59aa267c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 30 Oct 2008 11:54:30 +0100 Subject: objopt: use indirect calls instead of switch This patch replaces the use of switch by indirect function calls. Signed-off-by: Pablo Neira Ayuso --- include/internal/types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/internal/types.h') diff --git a/include/internal/types.h b/include/internal/types.h index a13722c..790bf7a 100644 --- a/include/internal/types.h +++ b/include/internal/types.h @@ -11,6 +11,8 @@ 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); +typedef int (*getobjopt)(const struct nf_conntrack *ct); +typedef void (*setobjopt)(struct nf_conntrack *ct); /* * expectation types -- cgit v1.2.3