VirtualBox

Ignore:
Timestamp:
May 21, 2021 10:47:13 AM (4 years ago)
Author:
vboxsync
Message:

Audio/ValKit: Moved audio test execution service (ATS) data into an own instance struct. bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/AudioTestService.h

    r89204 r89215  
    2424#include "AudioTestServiceInternal.h"
    2525
    26 int AudioTestSvcInit(void);
    27 int AudioTestSvcStart(void);
     26
     27/**
     28 * Structure for keeping an Audio Test Server (ATS) instance.
     29 */
     30typedef struct ATSSERVER
     31{
     32    /** The selected transport layer. */
     33    PCATSTRANSPORT       pTransport;
     34    /** Whether to terminate or not.
     35     * @todo implement signals and stuff.  */
     36    bool volatile        fTerminate;
     37    /** Pipe for communicating with the serving thread about new clients. - read end */
     38    RTPIPE               hPipeR;
     39    /** Pipe for communicating with the serving thread about new clients. - write end */
     40    RTPIPE               hPipeW;
     41    /** Main thread waiting for connections. */
     42    RTTHREAD             hThreadMain;
     43    /** Thread serving connected clients. */
     44    RTTHREAD             hThreadServing;
     45    /** Critical section protecting the list of new clients. */
     46    RTCRITSECT           CritSectClients;
     47    /** List of new clients waiting to be picked up by the client worker thread. */
     48    RTLISTANCHOR         LstClientsNew;
     49} ATSSERVER;
     50/** Pointer to an Audio Test Server (ATS) instance. */
     51typedef ATSSERVER *PATSSERVER;
     52
     53
     54int AudioTestSvcInit(PATSSERVER pThis);
     55int AudioTestSvcStart(PATSSERVER pThis);
     56int AudioTestSvcShutdown(PATSSERVER pThis);
    2857
    2958#endif /* !VBOX_INCLUDED_SRC_Audio_AudioTestService_h */
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