summaryrefslogtreecommitdiff
path: root/src/_videodev2.h (plain)
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
11static void
12fprint_struct_v4l2_capability (FILE *fp, int rw __attribute__ ((unused)), const struct v4l2_capability *t)
13{
14fprintf (fp, "name=\"%.*s\" "
15"type=",
1632, (const char *) t->name);
17fprint_symbolic (fp, 0, t->type,
18(void *) 0);
19fprintf (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);
36fprint_symbolic (fp, 2, t->flags,
37(void *) 0);
38fputs (" reserved[] ", fp);
39}
40
41static void
42fprint_ioctl_arg (FILE *fp, unsigned int cmd, int rw, void *arg)
43{
44switch (cmd) {
45case VIDIOC_QUERYCAP:
46if (!arg) { fputs ("VIDIOC_QUERYCAP", fp); return; }
47 fprint_struct_v4l2_capability (fp, rw, arg);
48break;
49 default:
50 if (!arg) { fprint_unknown_ioctl (fp, cmd, arg); return; }
51 break;
52 }
53}
54
55static __inline__ void IOCTL_ARG_TYPE_CHECK_VIDIOC_QUERYCAP (struct v4l2_capability *arg __attribute__ ((unused))) {}
56
57