mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-24 08:36:55 +01:00
wmmenugen: Add file name validator function
Add optional interface parsers may choose to implement that, when a directory is being scanned for files to parse, may, based on the file name, decide whether or not said file should be parsed. Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
This commit is contained in:
1 parent
5377ec8fba
commit
a23b72c32a
4 files changed
+72
-7
No files matched your search
@@ -34,7 +34,17 @@
|
||||
* Basic validation of the .desktop file is done.
|
||||
*/
|
||||
|
||||
#if __GLIBC__ && \
|
||||
(_XOPEN_SOURCE && _XOPEN_SOURCE < 500) || \
|
||||
!_XOPEN_SOURCE
|
||||
#define _XOPEN_SOURCE 500 /* nftw */
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include <ftw.h>
|
||||
#if DEBUG
|
||||
#include <errno.h>
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user