From 5f7791009790dc40f2d76be310ffeab55c242ced Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 25 Jan 2009 16:03:49 +0100 Subject: conf: const pointers in block get functions All config_get_block_*() functions should accept constant config_param pointers. --- src/mixer_api.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mixer_api.h') diff --git a/src/mixer_api.h b/src/mixer_api.h index 61f6c06f2..55aa7684c 100644 --- a/src/mixer_api.h +++ b/src/mixer_api.h @@ -28,7 +28,8 @@ struct mixer_plugin { /** * Setup and configure mixer */ - void (*configure)(struct mixer_data *data, struct config_param *param); + void (*configure)(struct mixer_data *data, + const struct config_param *param); /** * Open mixer device @@ -53,7 +54,7 @@ struct mixer { void mixer_init(struct mixer *mixer, struct mixer_plugin *plugin); void mixer_finish(struct mixer *mixer); -void mixer_configure(struct mixer *mixer, struct config_param *param); +void mixer_configure(struct mixer *mixer, const struct config_param *param); bool mixer_open(struct mixer *mixer); bool mixer_control(struct mixer *mixer, int cmd, void *arg); void mixer_close(struct mixer *mixer); -- cgit v1.2.3