VirtualBox

Ignore:
Timestamp:
Aug 25, 2021 5:08:03 PM (3 years ago)
Author:
vboxsync
Message:

Audio/VKAT: The ATS callback context has to be on the heap, not on the stack, otherwise things go south. bugref:10008

File:
1 edited

Legend:

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

    r90887 r90891  
    193193/** Pointer to audio test TCP options. */
    194194typedef AUDIOTESTENVTCPOPTS *PAUDIOTESTENVTCPOPTS;
     195
     196/**
     197 * Structure for keeping a user context for the test service callbacks.
     198 */
     199typedef struct ATSCALLBACKCTX
     200{
     201    /** The test environment bound to this context. */
     202    PAUDIOTESTENV pTstEnv;
     203    /** Absolute path to the packed up test set archive.
     204     *  Keep it simple for now and only support one (open) archive at a time. */
     205    char          szTestSetArchive[RTPATH_MAX];
     206    /** File handle to the (opened) test set archive for reading. */
     207    RTFILE        hTestSetArchive;
     208    /** Number of currently connected clients. */
     209    uint8_t       cClients;
     210} ATSCALLBACKCTX;
     211typedef ATSCALLBACKCTX *PATSCALLBACKCTX;
    195212
    196213/**
     
    236253    /** ATS server instance to use. */
    237254    ATSSERVER               Srv;
     255    /** ATS callback context to use. */
     256    ATSCALLBACKCTX          CallbackCtx;
    238257    union
    239258    {
Note: See TracChangeset for help on using the changeset viewer.

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