Re-import of fprobe-ulog
[fprobe-ulog.git] / trunk / src / my_getopt.h
1 /*
2         Copyright (C) Slava Astashonok <sla@0n.ru>
3
4         This program is free software; you can redistribute it and/or
5         modify it under the terms of the GNU General Public License.
6
7         $Id: my_getopt.h,v 1.1.1.1.2.3 2004/02/02 08:06:24 sla Exp $
8 */
9
10 #ifndef _MY_GETOPT_H_
11 #define _MY_GETOPT_H_
12
13 #define MY_GETOPT_ARG_REQUIRED 0x1
14 #define MY_GETOPT_REQUIRED 0x2
15 #define MY_GETOPT_ALLOW_REPEAT 0x4
16
17 #define MY_GETOPT_MAX_OPTSTR 4096
18
19 struct getopt_parms {
20         char name;
21         int flag;
22         int count;
23         char *arg;
24 };
25
26 int my_getopt(int argc, char * const argv[], struct getopt_parms parms[]);
27
28 #endif