Blame include/libiptc/xtcshared.h

Packit Service 3880ab
/* SPDX-License-Identifier: GPL-2.0 */
Packit Service 3880ab
#ifndef _LIBXTC_SHARED_H
Packit Service 3880ab
#define _LIBXTC_SHARED_H 1
Packit Service 3880ab
Packit Service 3880ab
typedef char xt_chainlabel[32];
Packit Service 3880ab
struct xtc_handle;
Packit Service 3880ab
struct xt_counters;
Packit Service 3880ab
Packit Service 3880ab
struct xtc_ops {
Packit Service 3880ab
	int (*commit)(struct xtc_handle *);
Packit Service 3880ab
	void (*free)(struct xtc_handle *);
Packit Service 3880ab
	int (*builtin)(const char *, struct xtc_handle *const);
Packit Service 3880ab
	int (*is_chain)(const char *, struct xtc_handle *const);
Packit Service 3880ab
	int (*flush_entries)(const xt_chainlabel, struct xtc_handle *);
Packit Service 3880ab
	int (*create_chain)(const xt_chainlabel, struct xtc_handle *);
Packit Service 3880ab
	int (*set_policy)(const xt_chainlabel, const xt_chainlabel,
Packit Service 3880ab
			  struct xt_counters *, struct xtc_handle *);
Packit Service 3880ab
	const char *(*strerror)(int);
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#endif /* _LIBXTC_SHARED_H */