1 #ifndef _LIBXTC_SHARED_H 2 #define _LIBXTC_SHARED_H 1 3 4 typedef char xt_chainlabel[32]; 5 struct xtc_handle; 6 struct xt_counters; 7 8 struct 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