1 | /* $Id: AudioTestServiceClient.h 89962 2021-06-30 07:02:07Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * AudioTestServiceClient - Audio test execution server, Public Header.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2021 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef VBOX_INCLUDED_SRC_Audio_AudioTestServiceClient_h
|
---|
19 | #define VBOX_INCLUDED_SRC_Audio_AudioTestServiceClient_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | #include "AudioTestServiceInternal.h"
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * Structure for maintaining an ATS client.
|
---|
28 | */
|
---|
29 | typedef struct ATSCLIENT
|
---|
30 | {
|
---|
31 | /** Pointer to the selected transport layer. */
|
---|
32 | PCATSTRANSPORT pTransport;
|
---|
33 | /** Pointer to the selected transport instance to use. */
|
---|
34 | PATSTRANSPORTINST pTransportInst;
|
---|
35 | /** The opaque client instance. */
|
---|
36 | PATSTRANSPORTCLIENT pTransportClient;
|
---|
37 | } ATSCLIENT;
|
---|
38 | /** Pointer to an ATS client. */
|
---|
39 | typedef ATSCLIENT *PATSCLIENT;
|
---|
40 |
|
---|
41 | int AudioTestSvcClientCreate(PATSCLIENT pClient);
|
---|
42 | void AudioTestSvcClientDestroy(PATSCLIENT pClient);
|
---|
43 | int AudioTestSvcClientConnect(PATSCLIENT pClient);
|
---|
44 | int AudioTestSvcClientHandleOption(PATSCLIENT pClient, int ch, PCRTGETOPTUNION pVal);
|
---|
45 | int AudioTestSvcClientTestSetBegin(PATSCLIENT pClient, const char *pszTag);
|
---|
46 | int AudioTestSvcClientTestSetEnd(PATSCLIENT pClient, const char *pszTag);
|
---|
47 | int AudioTestSvcClientTonePlay(PATSCLIENT pClient, PAUDIOTESTTONEPARMS pToneParms);
|
---|
48 | int AudioTestSvcClientToneRecord(PATSCLIENT pClient, PAUDIOTESTTONEPARMS pToneParms);
|
---|
49 | int AudioTestSvcClientTestSetDownload(PATSCLIENT pClient, const char *pszTag, const char *pszPathOutAbs);
|
---|
50 | int AudioTestSvcClientClose(PATSCLIENT pClient);
|
---|
51 |
|
---|
52 | #endif /* !VBOX_INCLUDED_SRC_Audio_AudioTestServiceClient_h */
|
---|
53 |
|
---|