* Code cleanup.

This commit is contained in:
Justin Maggard
2009-01-31 00:25:03 +00:00
parent 68ba24f255
commit 7e30949498
17 changed files with 54 additions and 114 deletions

View File

@ -525,6 +525,36 @@ sql_failed:
return (ret != SQLITE_OK);
}
int
filter_audio(const struct dirent *d)
{
return ( (*d->d_name != '.') &&
((d->d_type == DT_DIR) ||
((d->d_type == DT_REG) &&
is_audio(d->d_name) )
) );
}
int
filter_video(const struct dirent *d)
{
return ( (*d->d_name != '.') &&
((d->d_type == DT_DIR) ||
((d->d_type == DT_REG) &&
is_video(d->d_name) )
) );
}
int
filter_images(const struct dirent *d)
{
return ( (*d->d_name != '.') &&
((d->d_type == DT_DIR) ||
((d->d_type == DT_REG) &&
is_image(d->d_name) )
) );
}
int
filter_media(const struct dirent *d)
{