modules/access/dvdplay/dvd.c: removed an unused configuration category

modules&misc/logger/logger.c: use add_string_from_list for the logmode
option
parent 7587d7ef
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
***************************************************************************** *****************************************************************************
* *
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: dvd.c,v 1.3 2003/02/27 13:19:44 gbazin Exp $ * $Id: dvd.c,v 1.4 2003/03/30 11:54:29 sigmunau Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -49,7 +49,6 @@ void E_(CloseIntf) ( vlc_object_t * ); ...@@ -49,7 +49,6 @@ void E_(CloseIntf) ( vlc_object_t * );
*****************************************************************************/ *****************************************************************************/
vlc_module_begin(); vlc_module_begin();
add_usage_hint( N_("[dvdplay:][device][@[title][,[chapter][,angle]]]") ); add_usage_hint( N_("[dvdplay:][device][@[title][,[chapter][,angle]]]") );
add_category_hint( N_("dvd"), NULL, VLC_TRUE );
set_description( _("dvdplay input module") ); set_description( _("dvdplay input module") );
add_submodule(); add_submodule();
set_capability( "access", 120 ); set_capability( "access", 120 );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* logger.c : file logging plugin for vlc * logger.c : file logging plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: logger.c,v 1.4 2003/02/20 01:52:46 sigmunau Exp $ * $Id: logger.c,v 1.5 2003/03/30 11:54:29 sigmunau Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -81,10 +81,13 @@ static void HtmlPrint ( const msg_item_t *, FILE * ); ...@@ -81,10 +81,13 @@ static void HtmlPrint ( const msg_item_t *, FILE * );
/***************************************************************************** /*****************************************************************************
* Module descriptor * Module descriptor
*****************************************************************************/ *****************************************************************************/
static char *mode_list[] = { "text", "html", NULL };
#define LOGMODE_TEXT N_("log format")
#define LOGMODE_LONGTEXT N_("Specify the log format. Available choices are \"text\" (default) and \"html\"")
vlc_module_begin(); vlc_module_begin();
add_category_hint( N_("Miscellaneous"), NULL, VLC_FALSE ); add_category_hint( N_("Miscellaneous"), NULL, VLC_FALSE );
add_string( "logfile", NULL, NULL, N_("log filename"), N_("Specify the log filename."), VLC_FALSE ); add_string( "logfile", NULL, NULL, N_("log filename"), N_("Specify the log filename."), VLC_FALSE );
add_string( "logmode", NULL, NULL, N_("log format"), N_("Specify the log format. Available choices are \"text\" (default) and \"html\""), VLC_FALSE ); add_string_from_list( "logmode", "text", mode_list, NULL, LOGMODE_TEXT, LOGMODE_LONGTEXT, VLC_FALSE );
set_description( _("file logging interface module") ); set_description( _("file logging interface module") );
set_capability( "interface", 0 ); set_capability( "interface", 0 );
set_callbacks( Open, Close ); set_callbacks( Open, Close );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment