From c3852b4dee41fb09635584ac7126f59f40dd8cc6 Mon Sep 17 00:00:00 2001 From: tth Date: Thu, 15 Aug 2019 12:06:21 +0200 Subject: [PATCH] video-infos can now print a title --- v4l2/video-infos.c | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/v4l2/video-infos.c b/v4l2/video-infos.c index f1d9e959..7d8d0ce6 100644 --- a/v4l2/video-infos.c +++ b/v4l2/video-infos.c @@ -232,35 +232,51 @@ fprintf(stderr, "%s not implemented\n", __func__); return -1; } /* --------------------------------------------------------------------- */ - -void help(int k) +static void help(int k) { puts("Options :"); -puts("\t-d\tselect the video device"); -puts("\t-K\tset the K parameter"); -puts("\t-l\tlist video devices"); -puts("\t-v\tincrease verbosity"); +puts("\t-d\t\tselect the video device"); +puts("\t-K\t\tset the K parameter"); +puts("\t-l\t\tlist video devices"); +puts("\t-T bla\t\tadd a title"); +puts("\t-v\t\tincrease verbosity"); exit(0); } /* --------------------------------------------------------------------- */ +static void print_title(char *txt) +{ +int foo, l; + +l = strlen(txt); +for (foo=0; foo %d\n", foo);