gint layout_list_count(LayoutWindow *lw, gint64 *bytes) { if (!layout_valid(&lw)) return 0; if (lw->vfl) return vflist_count(lw->vfl, bytes); if (lw->vfi) return vficon_count(lw->vfi, bytes); return 0; }
guint vf_count(ViewFile *vf, gint64 *bytes) { guint count = 0; switch (vf->type) { case FILEVIEW_LIST: count = vflist_count(vf, bytes); break; case FILEVIEW_ICON: count = vficon_count(vf, bytes); break; } return count; }