Commit b77ad14a authored by nedko's avatar nedko
Browse files

Move jackctl_parameter_get_enum_constraint_description() to proper place

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2989 0c269be4-1314-0410-8aa9-9f06e86f4224
parent d03bd381
......@@ -979,6 +979,11 @@ EXPORT union jackctl_parameter_value jackctl_parameter_get_enum_constraint_value
return jackctl_value;
}
EXPORT const char * jackctl_parameter_get_enum_constraint_description(jackctl_parameter *parameter_ptr, uint32_t index)
{
return parameter_ptr->constraint_ptr->constraint.enumeration.possible_values_array[index].short_desc;
}
EXPORT void jackctl_parameter_get_range_constraint(jackctl_parameter *parameter_ptr, union jackctl_parameter_value * min_ptr, union jackctl_parameter_value * max_ptr)
{
switch (parameter_ptr->type)
......@@ -997,11 +1002,6 @@ EXPORT void jackctl_parameter_get_range_constraint(jackctl_parameter *parameter_
}
}
EXPORT const char * jackctl_parameter_get_enum_constraint_description(jackctl_parameter *parameter_ptr, uint32_t index)
{
return parameter_ptr->constraint_ptr->constraint.enumeration.possible_values_array[index].short_desc;
}
EXPORT jackctl_param_type_t jackctl_parameter_get_type(jackctl_parameter *parameter_ptr)
{
return parameter_ptr->type;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment