~ubuntu-branches/ubuntu/trusty/xtables-addons/trusty

« back to all changes in this revision

Viewing changes to extensions/ipset-5/include/libipset/ui.h

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2011-05-09 21:42:42 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110509214242-x3qc2okkyupvefoy
Tags: 1.35-1
* Imported Upstream version 1.35
* Update version numbers for DKMS package (Closes: #620662)
* Bump Standards Version to 3.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright 2007-2010 Jozsef Kadlecsik (kadlec@blackhole.kfki.hu)
2
 
 *
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.
6
 
 */
7
 
#ifndef LIBIPSET_UI_H
8
 
#define LIBIPSET_UI_H
9
 
 
10
 
#include <libipset/linux_ip_set.h>              /* enum ipset_cmd */
11
 
 
12
 
/* Commands in userspace */
13
 
struct ipset_commands {
14
 
        enum ipset_cmd cmd;
15
 
        int has_arg;
16
 
        const char *name[2];
17
 
        const char *help;
18
 
};
19
 
 
20
 
extern const struct ipset_commands ipset_commands[];
21
 
 
22
 
struct ipset_session;
23
 
struct ipset_data;
24
 
 
25
 
/* Environment options */
26
 
struct ipset_envopts {
27
 
        int flag;
28
 
        int has_arg;
29
 
        const char *name[2];
30
 
        const char *help;
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);
34
 
};
35
 
 
36
 
extern const struct ipset_envopts ipset_envopts[];
37
 
 
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);
43
 
 
44
 
#endif /* LIBIPSET_UI_H */