OSDN Git Service

ucm: move __snd_ctl_ascii_elem_id_parse prototype to control_local.h
authorJaroslav Kysela <perex@perex.cz>
Thu, 25 Mar 2021 19:40:22 +0000 (20:40 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 25 Mar 2021 19:40:22 +0000 (20:40 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/control/control_local.h
src/ucm/main.c

index 4afcfd2..9e20547 100644 (file)
@@ -110,3 +110,7 @@ int INTERNAL(snd_ctl_elem_info_get_dimension)(const snd_ctl_elem_info_t *obj, un
 int __snd_ctl_add_elem_set(snd_ctl_t *ctl, snd_ctl_elem_info_t *info,
                           unsigned int element_count,
                           unsigned int member_count);
+
+int __snd_ctl_ascii_elem_id_parse(snd_ctl_elem_id_t *dst,
+                                 const char *str,
+                                 const char **ret_ptr);
index a2547cb..d1b0ebb 100644 (file)
@@ -31,6 +31,7 @@
  */
 
 #include "ucm_local.h"
+#include "../control/control_local.h"
 #include <stdbool.h>
 #include <ctype.h>
 #include <stdarg.h>
@@ -253,10 +254,6 @@ static int binary_file_parse(snd_ctl_elem_value_t *dst,
        return err;
 }
 
-extern int __snd_ctl_ascii_elem_id_parse(snd_ctl_elem_id_t *dst,
-                                        const char *str,
-                                        const char **ret_ptr);
-
 static int execute_cset(snd_ctl_t *ctl, const char *cset, unsigned int type)
 {
        const char *pos;