v4l_id.c revision 912541b0246ef315d4d851237483b98c9dd3f992
/*
* Copyright (C) 2009 Kay Sievers <kay.sievers@vrfy.org>
* Copyright (c) 2009 Filippo Argiolas <filippo.argiolas@gmail.com>
*
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details:
*/
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <linux/videodev2.h>
{
{}
};
int fd;
char *device;
struct v4l2_capability v2cap;
while (1) {
int option;
if (option == -1)
break;
switch (option) {
case 'h':
printf("Usage: v4l_id [--help] <device file>\n\n");
return 0;
default:
return 1;
}
}
return 2;
if (fd < 0)
return 3;
printf("ID_V4L_VERSION=2\n");
printf("ID_V4L_CAPABILITIES=:");
printf("capture:");
printf("video_output:");
printf("video_overlay:");
printf("audio:");
printf("tuner:");
printf("radio:");
printf("\n");
}
return 0;
}