From acc4a0ba2dd0be3f28c4ca009e08d1cc1bbc534a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 24 Sep 2008 07:20:55 +0200 Subject: output: make "struct audio_output" opaque for output plugins We have eliminated direct accesses to the audio_output struct from the all output plugins. Make it opaque for them, and move its real declaration to output_internal.h, similar to decoder_internal.h. Pass the opaque structure to plugin.init() only, which will return the plugin's data pointer on success, and NULL on failure. This data pointer will be passed to all other methods instead of the audio_output struct. --- src/output_api.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/output_api.c') diff --git a/src/output_api.c b/src/output_api.c index eabc0bb8..c8225579 100644 --- a/src/output_api.c +++ b/src/output_api.c @@ -17,6 +17,7 @@ */ #include "output_api.h" +#include "output_internal.h" const char *audio_output_get_name(const struct audio_output *ao) { -- cgit v1.2.3