path: root/include
diff options
authorPablo Neira Ayuso <>2008-10-30 11:54:30 +0100
committerPablo Neira Ayuso <>2008-10-30 11:54:30 +0100
commit93c459d603cc7a3d9cadeb0844364d5e59aa267c (patch)
treeafa00c50d6099637d0cb690f7baf8a126d7e7f08 /include
parent6dd45b13115d77860a8e3b37caa1560cbcfd265c (diff)
objopt: use indirect calls instead of switch
This patch replaces the use of switch by indirect function calls. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include')
1 files changed, 2 insertions, 0 deletions
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