aboutsummaryrefslogtreecommitdiffstats
path: root/src/tvtimeconf.c
diff options
context:
space:
mode:
authorsfllaw <devnull@localhost>2003-10-24 16:27:27 +0000
committersfllaw <devnull@localhost>2003-10-24 16:27:27 +0000
commit7c143b64c274b5cbbf76c1d2bcc7258985bc1b84 (patch)
tree85d874a1afe73ff6d6376abd7488707a607a5948 /src/tvtimeconf.c
parent8ecabeb892fb07b2a2725a47abe50e107a44e8f8 (diff)
* tvtime/src/tvtimeconf.c: Provide a query option for --vbidevice
in order to provide symmetry with --device. As well, this aids in Debian packaging. * tvtimeconf.h: Ibid.
Diffstat (limited to 'src/tvtimeconf.c')
-rw-r--r--src/tvtimeconf.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/tvtimeconf.c b/src/tvtimeconf.c
index ef674c7..41d4726 100644
--- a/src/tvtimeconf.c
+++ b/src/tvtimeconf.c
@@ -1124,7 +1124,7 @@ int config_parse_tvtime_config_command_line( config_t *ct, int argc, char **argv
{ "configfile", 1, 0, 'F' },
{ "norm", 2, 0, 'n' },
{ "frequencies", 2, 0, 'f' },
- { "vbidevice", 1, 0, 'b' },
+ { "vbidevice", 2, 0, 'b' },
{ "device", 2, 0, 'd' },
{ "mixer", 1, 0, 'x' },
{ "fullscreen", 0, 0, 'm' },
@@ -1175,7 +1175,14 @@ int config_parse_tvtime_config_command_line( config_t *ct, int argc, char **argv
ct->v4ldev = strdup( optarg );
}
break;
- case 'b': free( ct->vbidev ); ct->vbidev = strdup( optarg ); break;
+ case 'b': if( !optarg ) {
+ fprintf( stdout, "VBIDevice:%s\n",
+ config_get_vbi_device( ct ) );
+ } else {
+ free( ct->vbidev );
+ ct->vbidev = strdup( optarg );
+ }
+ break;
case 'i': if( !optarg ) {
fprintf( stdout, "V4LInput:%d\n",
config_get_inputnum( ct ) );
@@ -1639,6 +1646,11 @@ const char *config_get_v4l_freq( config_t *ct )
return ct->freq;
}
+const char *config_get_vbi_device( config_t *ct )
+{
+ return ct->vbidev;
+}
+
const char *config_get_timeformat( config_t *ct )
{
return ct->timeformat;

Privacy Policy