static gchar *
rb_ipod_helpers_get_itunesdb_path (GMount *mount)
{
        GFile *root;
        gchar *mount_point;
        gchar *result = NULL;

        root = g_mount_get_root (mount);
        if (root != NULL) {
                mount_point = g_file_get_path (root);
                if (mount_point != NULL) {
                        result = itdb_get_itunesdb_path (mount_point);
                }

                g_free (mount_point);
                g_object_unref (root);
        }

        return result;
}
Exemple #2
0
Fichier : db.c Projet : mattn/cpod
/* check to see if a given path is an iPod mountpoint */
bool is_ipod_mountpoint(char *mp) {
    if (itdb_get_itunesdb_path(mp))
        return true;
    else
        return false;
}