diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 22:41:22 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-07 22:41:22 +0200 |
commit | 3b09c54b6769c7e0c8152dde2850a88f51e2f3d9 (patch) | |
tree | 30f28b2bfb230ce6674a08231ead1d3eac032164 /src/output_api.h | |
parent | bed2a49fe97b8f070ace2dd37909bb06540c66bd (diff) | |
download | mpd-3b09c54b6769c7e0c8152dde2850a88f51e2f3d9.tar.gz mpd-3b09c54b6769c7e0c8152dde2850a88f51e2f3d9.tar.xz mpd-3b09c54b6769c7e0c8152dde2850a88f51e2f3d9.zip |
output: renamed typedef AudioOutput to struct audio_output
Also rename AudioOutputPlugin to struct audio_output_plugin, and use
forward declarations to reduce include dependencies.
Diffstat (limited to 'src/output_api.h')
-rw-r--r-- | src/output_api.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/output_api.h b/src/output_api.h index 7391af1c7..c73e30a20 100644 --- a/src/output_api.h +++ b/src/output_api.h @@ -28,30 +28,30 @@ #include "log.h" #include "os_compat.h" -#define DISABLED_AUDIO_OUTPUT_PLUGIN(plugin) AudioOutputPlugin plugin; +#define DISABLED_AUDIO_OUTPUT_PLUGIN(plugin) struct audio_output_plugin plugin; -typedef struct _AudioOutput AudioOutput; +struct audio_output; typedef int (*AudioOutputTestDefaultDeviceFunc) (void); -typedef int (*AudioOutputInitDriverFunc) (AudioOutput * audioOutput, +typedef int (*AudioOutputInitDriverFunc) (struct audio_output *audioOutput, ConfigParam * param); -typedef void (*AudioOutputFinishDriverFunc) (AudioOutput * audioOutput); +typedef void (*AudioOutputFinishDriverFunc) (struct audio_output *audioOutput); -typedef int (*AudioOutputOpenDeviceFunc) (AudioOutput * audioOutput); +typedef int (*AudioOutputOpenDeviceFunc) (struct audio_output *audioOutput); -typedef int (*AudioOutputPlayFunc) (AudioOutput * audioOutput, +typedef int (*AudioOutputPlayFunc) (struct audio_output *audioOutput, const char *playChunk, size_t size); -typedef void (*AudioOutputDropBufferedAudioFunc) (AudioOutput * audioOutput); +typedef void (*AudioOutputDropBufferedAudioFunc) (struct audio_output *audioOutput); -typedef void (*AudioOutputCloseDeviceFunc) (AudioOutput * audioOutput); +typedef void (*AudioOutputCloseDeviceFunc) (struct audio_output *audioOutput); -typedef void (*AudioOutputSendMetadataFunc) (AudioOutput * audioOutput, +typedef void (*AudioOutputSendMetadataFunc) (struct audio_output *audioOutput, const struct tag *tag); -typedef struct _AudioOutputPlugin { +struct audio_output_plugin { const char *name; AudioOutputTestDefaultDeviceFunc testDefaultDeviceFunc; @@ -62,9 +62,9 @@ typedef struct _AudioOutputPlugin { AudioOutputDropBufferedAudioFunc dropBufferedAudioFunc; AudioOutputCloseDeviceFunc closeDeviceFunc; AudioOutputSendMetadataFunc sendMetdataFunc; -} AudioOutputPlugin; +}; -struct _AudioOutput { +struct audio_output { int open; const char *name; const char *type; |