mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-12 19:05:07 +00:00
sound: Move define "trick" to spice-wrapped.h header
The spice-wrapped.h was introduced to deal with such tricks in the code and limit them to a single place. Signed-off-by: Frediano Ziglio <freddy77@gmail.com> Acked-by: Julien Rope <jrope@redhat.com>
This commit is contained in:
parent
bd17418f9e
commit
aa0dddde0f
@ -73,10 +73,6 @@ struct PlaybackChannelClient;
|
||||
struct RecordChannelClient;
|
||||
struct AudioFrame;
|
||||
struct AudioFrameContainer;
|
||||
typedef struct SpicePlaybackState PlaybackChannel;
|
||||
#define PlaybackChannel SpicePlaybackState
|
||||
typedef struct SpiceRecordState RecordChannel;
|
||||
#define RecordChannel SpiceRecordState
|
||||
|
||||
struct PersistentPipeItem: public RedPipeItem
|
||||
{
|
||||
@ -162,7 +158,7 @@ typedef struct SpiceVolumeState {
|
||||
int mute;
|
||||
} SpiceVolumeState;
|
||||
|
||||
/* Base class for SpicePlaybackState and SpiceRecordState */
|
||||
/* Base class for PlaybackChannel and RecordChannel */
|
||||
struct SndChannel: public RedChannel
|
||||
{
|
||||
using RedChannel::RedChannel;
|
||||
|
||||
@ -24,6 +24,8 @@
|
||||
#define SPICE_GNUC_DEPRECATED
|
||||
|
||||
#define SpiceCharDeviceState RedCharDevice
|
||||
#define SpicePlaybackState PlaybackChannel
|
||||
#define SpiceRecordState RecordChannel
|
||||
|
||||
#include "push-visibility.h"
|
||||
struct RedCharDevice;
|
||||
@ -33,3 +35,5 @@ struct SpiceCharDeviceInstance;
|
||||
#include "spice.h"
|
||||
|
||||
#undef SpiceCharDeviceState
|
||||
#undef SpicePlaybackState
|
||||
#undef SpiceRecordState
|
||||
|
||||
Loading…
Reference in New Issue
Block a user