Add v4l2_subdev_open() and v4l2_subdev_close() to subdev.h
[media-ctl.git] / options.h
1 /*
2  * Media controller test application
3  *
4  * Copyright (C) 2010 Ideas on board SPRL <laurent.pinchart@ideasonboard.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  */
19
20 #ifndef __OPTIONS_H
21 #define __OPTIONS_H
22
23 struct media_options
24 {
25         const char *devname;
26         unsigned int interactive:1,
27                      print:1,
28                      print_dot:1,
29                      reset:1,
30                      verbose:1;
31         const char *entity;
32         const char *formats;
33         const char *links;
34         const char *pad;
35 };
36
37 extern struct media_options media_opts;
38
39 extern int parse_cmdline(int argc, char **argv);
40
41 #endif /* __OPTIONS_H */
42