From: Takashi Iwai Date: Thu, 4 Jan 2018 14:20:58 +0000 (+0100) Subject: control: Proper reference of internal versioned functions X-Git-Tag: v1.1.6~21 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=d4e08c5e86535b3110f4d5d75c27f77d97ca35eb;p=alsa-lib.git control: Proper reference of internal versioned functions The multiply defined versioned symbols have to be called with INTERNAL() wrapper. Add the missing declarations of the internal forms of snd_ctl_elem_info_get_dimension*() in the local header, and use them in the (still remaining) callers in alisp. Signed-off-by: Takashi Iwai --- diff --git a/src/alisp/alisp_snd.c b/src/alisp/alisp_snd.c index 347f221b..16115236 100644 --- a/src/alisp/alisp_snd.c +++ b/src/alisp/alisp_snd.c @@ -575,12 +575,12 @@ static struct alisp_object * FA_hctl_elem_info(struct alisp_instance * instance, p1 = add_cons(instance, p1, 1, "isowner", new_integer(instance, snd_ctl_elem_info_is_owner(&info))); p1 = add_cons(instance, p1, 1, "owner", new_integer(instance, snd_ctl_elem_info_get_owner(&info))); p1 = add_cons(instance, p1, 1, "count", new_integer(instance, snd_ctl_elem_info_get_count(&info))); - err = snd_ctl_elem_info_get_dimensions(&info); + err = INTERNAL(snd_ctl_elem_info_get_dimensions)(&info); if (err > 0) { int idx; p1 = add_cons(instance, p1, 1, "dimensions", p2 = new_object(instance, ALISP_OBJ_CONS)); for (idx = 0; idx < err; idx++) - p2 = add_cons2(instance, p2, idx > 0, new_integer(instance, snd_ctl_elem_info_get_dimension(&info, idx))); + p2 = add_cons2(instance, p2, idx > 0, new_integer(instance, INTERNAL(snd_ctl_elem_info_get_dimension)(&info, idx))); } switch (type) { case SND_CTL_ELEM_TYPE_ENUMERATED: { diff --git a/src/control/control_local.h b/src/control/control_local.h index 907705d1..30218c6c 100644 --- a/src/control/control_local.h +++ b/src/control/control_local.h @@ -100,3 +100,8 @@ int snd_ctl_shm_open(snd_ctl_t **handlep, const char *name, const char *sockname int snd_ctl_async(snd_ctl_t *ctl, int sig, pid_t pid); #define CTLINABORT(x) ((x)->nonblock == 2) + +#ifdef INTERNAL +int INTERNAL(snd_ctl_elem_info_get_dimensions)(const snd_ctl_elem_info_t *obj); +int INTERNAL(snd_ctl_elem_info_get_dimension)(const snd_ctl_elem_info_t *obj, unsigned int idx); +#endif /* INTERNAL */