/**********************************************************************
 
	Copyright (C) 2003 Hirohisa MORI <joshua@nichibun.ac.jp>
 
	This program is free software; you can redistribute it 
	and/or modify it under the terms of the GLOBALBASE 
	Library General Public License (G-LGPL) as published by 

	http://www.globalbase.org/
 
	This program is distributed in the hope that it will be 
	useful, but WITHOUT ANY WARRANTY; without even the 
	implied warranty of MERCHANTABILITY or FITNESS FOR A 
	PARTICULAR PURPOSE.

**********************************************************************/



#ifndef ___XLDIR_H___
#define ___XLDIR_H___


typedef struct dir_list {
	char *			name;
	int			flags;
#define DLF_TYPE_M	0x00000003
#define DLF_FILE	0x00000001
#define DLF_DIR		0x00000002
#define DLF_T_EXIST_M	0x0000000c
#define DLF_T_EXIST_D	0x0000000c
#define DLF_T_EXIST	0x00000004
#define DLF_T_NOTEXIST	0x00000008

#define DLF_T_STAMP_M	0x00000030
#define DLF_T_STAMP_D	0x00000030
#define DLF_T_TOUCH	0x00000010
#define DLF_T_NOTOUCH	0x00000020

	struct dir_list	*	next;
} DIR_LIST;

DIR_LIST *
get_dir(
	char * wildcard,
	char * base_dir,
	char * target_dir,
	char * prefix,
	int condition);

#endif

