1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-17 06:35:47 +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:
Tamas TEVESZ
2010-10-09 09:23:40 +02:00
committed by Carlos R. Mafra
parent 5377ec8fba
commit a23b72c32a
4 changed files with 72 additions and 7 deletions

View File

@@ -57,3 +57,5 @@ Bool fileInPath(const char *file);
*/
void parse_xdg(const char *file, void (*addWMMenuEntryCallback)(WMMenuEntry *aEntry));
void parse_wmconfig(const char *file, void (*addWMMenuEntryCallback)(WMMenuEntry *aEntry));
Bool wmconfig_validate_file(const char *filename, const struct stat *st, int tflags, struct FTW *ftw);