]> git.sesse.net Git - vlc/commitdiff
modules/access/dvdplay/dvd.c: removed an unused configuration category
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sun, 30 Mar 2003 11:54:29 +0000 (11:54 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sun, 30 Mar 2003 11:54:29 +0000 (11:54 +0000)
modules&misc/logger/logger.c: use add_string_from_list for the logmode
option

modules/access/dvdplay/dvd.c
modules/misc/logger/logger.c

index 8ec3d67e6eaebbb45e79e988252669f28902d7a8..a2f6e45147f21592e8571e131f66b8a6827f742a 100644 (file)
@@ -7,7 +7,7 @@
  *****************************************************************************
  *    
  * 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>
  *
@@ -49,7 +49,6 @@ void E_(CloseIntf) ( vlc_object_t * );
  *****************************************************************************/
 vlc_module_begin();
     add_usage_hint( N_("[dvdplay:][device][@[title][,[chapter][,angle]]]") );
-    add_category_hint( N_("dvd"), NULL, VLC_TRUE );
     set_description( _("dvdplay input module") );
     add_submodule();
         set_capability( "access", 120 );
index 685cae646c3759b327019ce0a619ce0e7b2f7e9e..365e0f14ff258c2c737ecca407540c119a22d91c 100644 (file)
@@ -2,7 +2,7 @@
  * logger.c : file logging plugin for vlc
  *****************************************************************************
  * 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>
  *
@@ -81,10 +81,13 @@ static void HtmlPrint         ( const msg_item_t *, FILE * );
 /*****************************************************************************
  * 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();
     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( "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_capability( "interface", 0 );
     set_callbacks( Open, Close );