#if !defined (_EMTEXDIR_H)
#define _EMTEXDIR_H
#if defined (__cplusplus)
extern "C" {
#endif
#define EDS_ONESUBDIR 0x0001
#define EDS_ALLSUBDIR 0x0002
#define EDS_BANG 0x0004
#define EDF_CWD 0x0001
#define EDF_FSLASH 0x0002
#define EDF_TRACE 0x8000
#define EDT_5_PLUS_3 0
#define EDT_8 1
#define EDT_UNCHANGED 0
#define EDT_CHANGED 1
#define EDT_TOOLONG 2
#define EDT_INVALID 3
struct emtex_dir
{
char **list;
int used;
int alloc;
};
extern void (*emtex_dir_find_callback)(const char *name, int ok);
int emtex_dir_setup (struct emtex_dir *ed, const char *env, const char *dir,
unsigned flags);
int emtex_dir_find (char *path, size_t path_size, const struct emtex_dir *ed,
const char *fname, unsigned flags);
int emtex_dir_trunc (char *dst, size_t dst_size, const char *src,
unsigned flags, int method);
#if defined (__cplusplus)
}
#endif
#endif