xtcshared.h revision de4d2d3b716d83a6d3831aaf902c5adb5d1d14c9
1#ifndef _LIBXTC_SHARED_H
2#define _LIBXTC_SHARED_H 1
3
4typedef char xt_chainlabel[32];
5struct xtc_handle;
6struct xt_counters;
7
8struct xtc_ops {
9	int (*commit)(struct xtc_handle *);
10	void (*free)(struct xtc_handle *);
11	int (*builtin)(const char *, struct xtc_handle *const);
12	int (*is_chain)(const char *, struct xtc_handle *const);
13	int (*flush_entries)(const xt_chainlabel, struct xtc_handle *);
14	int (*create_chain)(const xt_chainlabel, struct xtc_handle *);
15	int (*set_policy)(const xt_chainlabel, const xt_chainlabel,
16			  struct xt_counters *, struct xtc_handle *);
17	const char *(*strerror)(int);
18};
19
20#endif /* _LIBXTC_SHARED_H */
21