summaryrefslogtreecommitdiffstats
path: root/include/xtables.h
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-01-20 13:19:40 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-01-20 13:19:40 +0000
commit245a69add9e3195b2b4a596a3104e49a17b47017 (patch)
tree6d7391a52374293edc0cce5e61126ab1ea9409ee /include/xtables.h
parentfd60e9c668e55cc6c4a6f29130b96b7b4e33d6f3 (diff)
[PATCH]: common error messages
Error messages vary wildly among modules, and there is a lot of reundance in it too. Introduce a helper function that does all of the parameter checking boilerplate and gives unique messages. Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Diffstat (limited to 'include/xtables.h')
-rw-r--r--include/xtables.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/xtables.h b/include/xtables.h
index 728b1aa..5e4b2c7 100644
--- a/include/xtables.h
+++ b/include/xtables.h
@@ -220,7 +220,11 @@ enum exittype {
OTHER_PROBLEM = 1,
PARAMETER_PROBLEM,
VERSION_PROBLEM,
- RESOURCE_PROBLEM
+ RESOURCE_PROBLEM,
+ P_ONLY_ONCE,
+ P_NO_INVERT,
+ P_BAD_VALUE,
+ P_ONE_ACTION,
};
/* this is a special 64bit data type that is 8-byte aligned */
@@ -229,6 +233,7 @@ enum exittype {
int check_inverse(const char option[], int *invert, int *optind, int argc);
void exit_error(enum exittype, const char *, ...)__attribute__((noreturn,
format(printf,2,3)));
+extern void param_act(unsigned int, const char *, ...);
extern const char *program_name, *program_version;
#ifdef NO_SHARED_LIBS