EAPI const char *
efreet_mime_type_get(const char *file)
{
    const char *type = NULL;

    if (!file)
      return NULL;

    if ((type = efreet_mime_special_check(file)))
        return type;

    /* Check magics with priority > 80 */
    if ((type = efreet_mime_magic_check_priority(file, 0, 80)))
        return type;

    /* Check globs */
    if ((type = efreet_mime_globs_type_get(file)))
        return type;

    /* Check rest of magics */
    if ((type = efreet_mime_magic_check_priority(file, 80, 0)))
        return type;

    return efreet_mime_fallback_check(file);
}
Example #2
0
EAPI const char *
efreet_mime_special_type_get(const char *file)
{
    EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL);
    return efreet_mime_special_check(file);
}
EAPI const char *
efreet_mime_special_type_get(const char *file)
{
    return efreet_mime_special_check(file);
}