GList *layout_list(LayoutWindow *lw) { if (!layout_valid(&lw)) return NULL; if (lw->vfl) return vflist_get_list(lw->vfl); if (lw->vfi) return vficon_get_list(lw->vfi); return NULL; }
GList *vf_get_list(ViewFile *vf) { GList *list = NULL; switch (vf->type) { case FILEVIEW_LIST: list = vflist_get_list(vf); break; case FILEVIEW_ICON: list = vficon_get_list(vf); break; } return list; }