00001 /************************************************************************ 00002 * Copyright (C) 2005-2008 Philipp Marek. 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License version 3 as 00006 * published by the Free Software Foundation. 00007 ************************************************************************/ 00008 00009 #ifndef __DIRENUM_H__ 00010 #define __DIRENUM_H__ 00011 00015 // for alphasort 00016 #include <dirent.h> 00017 00018 #include "global.h" 00019 00021 int dir__enumerator(struct estat *this, 00022 int est_count, 00023 int by_name) ; 00024 00027 int dir__sortbyname(struct estat *sts); 00029 int dir__sortbyinode(struct estat *sts); 00030 00031 int dir___f_sort_by_inode(struct estat **a, struct estat **b); 00032 int dir___f_sort_by_inodePP(struct estat *a, struct estat *b); 00033 int dir___f_sort_by_name(const void *a, const void *b); 00034 int dir___f_sort_by_nameCC(const void *a, const void *b); 00035 int dir___f_sort_by_nameCS(const void *a, const void *b); 00036 00043 #define ESTIMATED_ENTRY_LENGTH (15) 00044 00045 #endif 00046