[mythtv-commits] mythtv commit: r8079 - in trunk/mythtv by cpinkham

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Tue Nov 29 12:12:50 EST 2005


      Author: cpinkham
        Date: 2005-11-29 17:12:48 +0000 (Tue, 29 Nov 2005)
New Revision: 8079
   Changeset: http://cvs.mythtv.org/trac/changeset/8079

Modified:

   trunk/mythtv/libs/libmyth/mythcontext.cpp
   trunk/mythtv/libs/libmyth/mythcontext.h
   trunk/mythtv/programs/mythbackend/main.cpp
   trunk/mythtv/programs/mythcommflag/main.cpp
   trunk/mythtv/programs/mythfrontend/main.cpp
   trunk/mythtv/programs/mythtranscode/main.cpp

Log:

Rework parts of the VERBOSE enum and parse_verbose_arg() code to allow negating
of options and make the code easier to maintain.  Also extend the enum size to
a 32 bit value to allow room for future additional debug options.  With the
code cleanup, the only place you need to modify to add a new VB_* option
is the VERBOSE_MAP defined at the top of libs/libmyth/mythcontext.h.  This
map contains the enum name, value, "-v" argument name, "-v help" descriptive
text, and a flag indicating whether the option is explicit or additive.
For more info on how to negate options, see the "-v help" output.

This touches mythcontext.h and mythcontext.cpp, but the VB_* enums remain the
same and the definition of parse_verbose_arg() remains the same, so you should
not have to do a make clean.






More information about the mythtv-commits mailing list