| 3596 | } |
| 3597 | |
| 3598 | int hb_container_get_from_name(const char *name) |
| 3599 | { |
| 3600 | if (name == NULL || *name == '\0') |
| 3601 | goto fail; |
| 3602 | |
| 3603 | int i; |
| 3604 | for (i = 0; i < hb_containers_count; i++) |
| 3605 | { |
| 3606 | if (!strcasecmp(hb_containers[i].item.name, name) || |
| 3607 | !strcasecmp(hb_containers[i].item.short_name, name)) |
| 3608 | { |
| 3609 | return hb_containers[i].item.format; |
| 3610 | } |
| 3611 | } |
| 3612 | |
| 3613 | fail: |
| 3614 | return HB_MUX_INVALID; |
| 3615 | } |
| 3616 | |
| 3617 | int hb_container_get_from_extension(const char *extension) |
| 3618 | { |
no outgoing calls