| 3615 | } |
| 3616 | |
| 3617 | int hb_container_get_from_extension(const char *extension) |
| 3618 | { |
| 3619 | if (extension == NULL || *extension == '\0') |
| 3620 | goto fail; |
| 3621 | |
| 3622 | int i; |
| 3623 | for (i = 0; i < hb_containers_count; i++) |
| 3624 | { |
| 3625 | if (!strcasecmp(hb_containers[i].item.default_extension, extension)) |
| 3626 | { |
| 3627 | return hb_containers[i].item.format; |
| 3628 | } |
| 3629 | } |
| 3630 | |
| 3631 | fail: |
| 3632 | return HB_MUX_INVALID; |
| 3633 | } |
| 3634 | |
| 3635 | const char* hb_container_get_name(int format) |
| 3636 | { |
no outgoing calls