Re-import of fprobe-ulog
[iptables.git] / src / my_getopt.h
diff --git a/src/my_getopt.h b/src/my_getopt.h
new file mode 100644 (file)
index 0000000..e8f8d1f
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+       Copyright (C) Slava Astashonok <sla@0n.ru>
+
+       This program is free software; you can redistribute it and/or
+       modify it under the terms of the GNU General Public License.
+
+       $Id: my_getopt.h,v 1.1.1.1.2.3 2004/02/02 08:06:24 sla Exp $
+*/
+
+#ifndef _MY_GETOPT_H_
+#define _MY_GETOPT_H_
+
+#define MY_GETOPT_ARG_REQUIRED 0x1
+#define MY_GETOPT_REQUIRED 0x2
+#define MY_GETOPT_ALLOW_REPEAT 0x4
+
+#define MY_GETOPT_MAX_OPTSTR 4096
+
+struct getopt_parms {
+       char name;
+       int flag;
+       int count;
+       char *arg;
+};
+
+int my_getopt(int argc, char * const argv[], struct getopt_parms parms[]);
+
+#endif