blob: 3aca316781f87bfe5de100c699599f94027711b1
1 | /* Generated file, do not edit! */ |
2 | |
3 | #include <stdio.h> |
4 | #include "io.h" |
5 | |
6 | #ifndef __GNUC__ |
7 | #undef __attribute__ |
8 | #define __attribute__(x) |
9 | #endif |
10 | |
11 | static void |
12 | fprint_struct_v4l2_capability (FILE *fp, int rw __attribute__ ((unused)), const struct v4l2_capability *t) |
13 | { |
14 | fprintf (fp, "name=\"%.*s\" " |
15 | "type=", |
16 | 32, (const char *) t->name); |
17 | fprint_symbolic (fp, 0, t->type, |
18 | (void *) 0); |
19 | fprintf (fp, " inputs=%ld " |
20 | "outputs=%ld " |
21 | "audios=%ld " |
22 | "maxwidth=%ld " |
23 | "maxheight=%ld " |
24 | "minwidth=%ld " |
25 | "minheight=%ld " |
26 | "maxframerate=%ld " |
27 | "flags=", |
28 | (long) t->inputs, |
29 | (long) t->outputs, |
30 | (long) t->audios, |
31 | (long) t->maxwidth, |
32 | (long) t->maxheight, |
33 | (long) t->minwidth, |
34 | (long) t->minheight, |
35 | (long) t->maxframerate); |
36 | fprint_symbolic (fp, 2, t->flags, |
37 | (void *) 0); |
38 | fputs (" reserved[] ", fp); |
39 | } |
40 | |
41 | static void |
42 | fprint_ioctl_arg (FILE *fp, unsigned int cmd, int rw, void *arg) |
43 | { |
44 | switch (cmd) { |
45 | case VIDIOC_QUERYCAP: |
46 | if (!arg) { fputs ("VIDIOC_QUERYCAP", fp); return; } |
47 | fprint_struct_v4l2_capability (fp, rw, arg); |
48 | break; |
49 | default: |
50 | if (!arg) { fprint_unknown_ioctl (fp, cmd, arg); return; } |
51 | break; |
52 | } |
53 | } |
54 | |
55 | static __inline__ void IOCTL_ARG_TYPE_CHECK_VIDIOC_QUERYCAP (struct v4l2_capability *arg __attribute__ ((unused))) {} |
56 | |
57 |