Instead of two exported functions, export a single option structure.
Showing the changes to include (1 of 3 files). Show all
Unified · Split
| @@ -108,8 +108,12 @@ static inline void nf_ct_destroy_timeout(struct nf_conn *ct) · 107 unmodified lines | ||
| 108 | 108 | #endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ |
| 109 | 109 | |
| 110 | 110 | #ifdef CONFIG_NF_CONNTRACK_TIMEOUT |
| 111 | −extern struct nf_ct_timeout *(*nf_ct_timeout_find_get_hook)(struct net *net, const char *name); | |
| 112 | −extern void (*nf_ct_timeout_put_hook)(struct nf_ct_timeout *timeout); | |
| 111 | +struct nf_ct_timeout_hooks { | |
| 112 | + struct nf_ct_timeout *(*timeout_find_get)(struct net *net, const char *name); | |
| 113 | + void (*timeout_put)(struct nf_ct_timeout *timeout); | |
| 114 | +}; | |
| 115 | + | |
| 116 | +extern const struct nf_ct_timeout_hooks *nf_ct_timeout_hook; | |
| 113 | 117 | #endif |
| 114 | 118 | |
| 115 | 119 | #endif /* _NF_CONNTRACK_TIMEOUT_H */ |