XT-Audio
Shared.h
Go to the documentation of this file.
1 #ifndef XT_API_SHARED_H
2 #define XT_API_SHARED_H
3 
5 #include <stdint.h>
8 #ifdef _WIN32
9 #define XT_CALL __stdcall
10 #else
11 #define XT_CALL
12 #endif // _WIN32
13 #define XT_CALLBACK XT_CALL
14 
16 #ifndef XT_EXPORT
17 #define XT_API
18 #elif (defined _WIN32)
19 #define XT_API __declspec(dllexport)
20 #else
21 #define XT_API __attribute__((visibility("default")))
22 #endif // XT_EXPORT
23 
25 typedef int32_t XtBool;
26 typedef uint64_t XtError;
27 static XtBool const XtTrue = 1;
28 static XtBool const XtFalse = 0;
29 
30 typedef struct XtDevice XtDevice;
31 typedef struct XtStream XtStream;
32 typedef struct XtService XtService;
33 typedef struct XtPlatform XtPlatform;
34 typedef struct XtDeviceList XtDeviceList;
35 
36 #endif // XT_API_SHARED_H
static XtBool const XtTrue
Boolean true (1).
Definition: Shared.h:27
static XtBool const XtFalse
Boolean false (0).
Definition: Shared.h:28
struct XtPlatform XtPlatform
opaque platform handle
Definition: Shared.h:33
struct XtDeviceList XtDeviceList
opaque device list handle
Definition: Shared.h:34
uint64_t XtError
Error type.
Definition: Shared.h:26
struct XtService XtService
opaque audio service handle
Definition: Shared.h:32
struct XtStream XtStream
opaque audio stream handle
Definition: Shared.h:31
int32_t XtBool
Boolean type.
Definition: Shared.h:25
struct XtDevice XtDevice
opaque audio device handle
Definition: Shared.h:30