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:
Frediano Ziglio 2020-05-05 02:26:34 +01:00
parent bd17418f9e
commit aa0dddde0f
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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