aboutsummaryrefslogtreecommitdiff
path: root/opts.h
blob: 196c047b5413f86279e317a8ef73360e5abdbdcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
    Mount option parsing
    Copyright (C) 2004  Miklos Szeredi <miklos@szeredi.hu>

    This program can be distributed under the terms of the GNU GPL.
    See the file COPYING.
*/

struct opt {
    const char *optname;
    int present;
    char *value;
};

void process_options(int *argcp, char *argv[], struct opt opts[], 
                     int case_sensitive);

int opt_get_unsigned(const struct opt *o, unsigned *valp);

char *opt_get_string(const struct opt *o);