VirtualBox

Ignore:
Timestamp:
Sep 5, 2022 10:30:23 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153484
Message:

ValKit/Audio: Added a 'backends' command for listing available backends. Made --help after a command result in info about just that command rather than loads of irrelevant info about other commands. Likewise, just list the commands when none is given or we don't recognizes the one specified. bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkatInternal.h

    r96407 r96607  
    378378extern const char      *g_pszDrvAudioDebug;
    379379
     380extern const VKATCMD    g_CmdTest;
     381extern const VKATCMD    g_CmdVerify;
     382extern const VKATCMD    g_CmdBackends;
    380383extern const VKATCMD    g_CmdEnum;
    381384extern const VKATCMD    g_CmdPlay;
     
    383386extern const VKATCMD    g_CmdSelfTest;
    384387
     388
    385389extern AUDIOTESTDESC    g_aTests[];
    386390extern unsigned         g_cTests;
     
    396400/** @name Command line handlers
    397401 * @{ */
    398 RTEXITCODE audioTestUsage(PRTSTREAM pStrm);
     402RTEXITCODE audioTestUsage(PRTSTREAM pStrm, PCVKATCMD pOnlyCmd);
    399403RTEXITCODE audioTestVersion(void);
    400404void       audioTestShowLogo(PRTSTREAM pStream);
     
    494498void        audioTestIoOptsInitDefaults(PAUDIOTESTIOOPTS pIoOpts);
    495499
     500
    496501/*********************************************************************************************************************************
    497502*   Common command line stuff                                                                                                    *
     
    510515
    511516/** For use in the option switch to handle common options. */
    512 #define AUDIO_TEST_COMMON_OPTION_CASES(a_ValueUnion) \
     517#define AUDIO_TEST_COMMON_OPTION_CASES(a_ValueUnion, a_pCmd) \
    513518            case 'q': \
    514519                g_uVerbosity = 0; \
     
    518523            \
    519524            case 'v': \
    520                 /* No-op here, has been handled by main() already. */ \
     525                /* No-op here, has been handled by main() already. */ /** @todo r-bird: -q works, so -v must too! */ \
    521526                break; \
    522527            \
     
    525530            \
    526531            case 'h': \
    527                 return audioTestUsage(g_pStdOut); \
     532                return audioTestUsage(g_pStdOut, a_pCmd); \
    528533            \
    529534            case AUDIO_TEST_OPT_CMN_DEBUG_AUDIO_ENABLE: \
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette