1
/* Copyright 2007-2010 Jozsef Kadlecsik (kadlec@blackhole.kfki.hu)
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License version 2 as
5
* published by the Free Software Foundation.
10
#include <libipset/linux_ip_set.h> /* enum ipset_cmd */
12
/* Commands in userspace */
13
struct ipset_commands {
20
extern const struct ipset_commands ipset_commands[];
25
/* Environment options */
26
struct ipset_envopts {
31
int (*parse)(struct ipset_session *s, int flag, const char *str);
32
int (*print)(char *buf, unsigned int len,
33
const struct ipset_data *data, int flag, uint8_t env);
36
extern const struct ipset_envopts ipset_envopts[];
38
extern bool ipset_match_cmd(const char *arg, const char * const name[]);
39
extern bool ipset_match_option(const char *arg, const char * const name[]);
40
extern bool ipset_match_envopt(const char *arg, const char * const name[]);
41
extern void ipset_shift_argv(int *argc, char *argv[], int from);
42
extern void ipset_port_usage(void);
44
#endif /* LIBIPSET_UI_H */