xtcshared.h 634 B

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