output_plugin: don't pass audio_output object to method init()
audio_output_get_name() has been removed, which was the only function left in output_api.h. The output plugin doesn't need the audio_output object at all, remove the parameter from the init() method.
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
struct audio_output;
|
||||
struct config_param;
|
||||
struct audio_format;
|
||||
struct tag;
|
||||
@@ -54,8 +53,7 @@ struct audio_output_plugin {
|
||||
* @return NULL on error, or an opaque pointer to the plugin's
|
||||
* data
|
||||
*/
|
||||
void *(*init)(struct audio_output *ao,
|
||||
const struct audio_format *audio_format,
|
||||
void *(*init)(const struct audio_format *audio_format,
|
||||
const struct config_param *param);
|
||||
|
||||
/**
|
||||
@@ -127,11 +125,10 @@ ao_plugin_test_default_device(const struct audio_output_plugin *plugin)
|
||||
|
||||
static inline void *
|
||||
ao_plugin_init(const struct audio_output_plugin *plugin,
|
||||
struct audio_output *ao,
|
||||
const struct audio_format *audio_format,
|
||||
const struct config_param *param)
|
||||
{
|
||||
return plugin->init(ao, audio_format, param);
|
||||
return plugin->init(audio_format, param);
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
||||
Reference in New Issue
Block a user