| 1 |
/* |
| 2 |
* Media controller test application |
| 3 |
* |
| 4 |
* Copyright (C) 2010-2014 Ideas on board SPRL |
| 5 |
* |
| 6 |
* Contact: Laurent Pinchart <[email protected]> |
| 7 |
* |
| 8 |
* This program is free software; you can redistribute it and/or modify |
| 9 |
* it under the terms of the GNU Lesser General Public License as published |
| 10 |
* by the Free Software Foundation; either version 2.1 of the License, or |
| 11 |
* (at your option) any later version. |
| 12 |
* |
| 13 |
* This program is distributed in the hope that it will be useful, |
| 14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
* GNU Lesser General Public License for more details. |
| 17 |
* |
| 18 |
* You should have received a copy of the GNU Lesser General Public License |
| 19 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 |
*/ |
| 21 |
|
| 22 |
#ifndef __OPTIONS_H |
| 23 |
#define __OPTIONS_H |
| 24 |
|
| 25 |
#include <linux/v4l2-subdev.h> |
| 26 |
|
| 27 |
struct media_options |
| 28 |
{ |
| 29 |
const char *devname; |
| 30 |
unsigned int interactive:1, |
| 31 |
print:1, |
| 32 |
print_dot:1, |
| 33 |
reset:1, |
| 34 |
verbose:1; |
| 35 |
const char *entity; |
| 36 |
const char *formats; |
| 37 |
const char *links; |
| 38 |
const char *fmt_pad; |
| 39 |
const char *get_dv_pad; |
| 40 |
const char *dv_pad; |
| 41 |
const char *routes; |
| 42 |
enum v4l2_subdev_format_whence which; |
| 43 |
}; |
| 44 |
|
| 45 |
extern struct media_options media_opts; |
| 46 |
|
| 47 |
extern int parse_cmdline(int argc, char **argv); |
| 48 |
|
| 49 |
#endif /* __OPTIONS_H */ |
| 50 |
|