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