GNU Linux-libre 4.14.266-gnu1
[releases.git] / fs / ncpfs / getopt.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_GETOPT_H
3 #define _LINUX_GETOPT_H
4
5 #define OPT_NOPARAM     1
6 #define OPT_INT         2
7 #define OPT_STRING      4
8 struct ncp_option {
9         const char *name;
10         unsigned int has_arg;
11         int val;
12 };
13
14 extern int ncp_getopt(const char *caller, char **options, const struct ncp_option *opts,
15                       char **optopt, char **optarg, unsigned long *value);
16
17 #endif /* _LINUX_GETOPT_H */