aboutsummaryrefslogtreecommitdiff
blob: b264e7cbffc5e1719151f425b58a148f9fd989be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
_q_static struct dirent *q_vdb_get_next_dir(DIR *dir)
{
	/* search for a category directory */
	struct dirent *ret;

next_entry:
	ret = readdir(dir);
	if (ret == NULL) {
		closedir(dir);
		return NULL;
	}

	if (q_vdb_filter_cat(ret) == 0)
		goto next_entry;

	return ret;
}