fts_subs.h 763 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* $MirOS: contrib/hosted/fwcf/fts_subs.h,v 1.6 2006/09/26 10:25:03 tg Exp $ */
  2. /*
  3. * This file is part of the FreeWRT project. FreeWRT is copyrighted
  4. * material, please see the LICENCE file in the top-level directory
  5. * or at http://www.freewrt.org/licence for details.
  6. */
  7. #ifndef FTS_SUBS_H
  8. #define FTS_SUBS_H
  9. struct FTSF_ENTRY {
  10. char pathname[MAXPATHLEN];
  11. struct stat *statp;
  12. enum {
  13. FTSF_DIR,
  14. FTSF_FILE,
  15. FTSF_SYMLINK,
  16. FTSF_OTHER
  17. } etype;
  18. };
  19. #ifndef PACK_H
  20. typedef struct FTSF_ENTRY ftsf_entry;
  21. #endif
  22. #ifndef FTSF_INTERNALS
  23. extern const char ftsf_prefix[];
  24. #endif
  25. __BEGIN_DECLS
  26. void ftsf_start(const char *);
  27. /* returns -1 on error, 0 on empty, 1 on okay */
  28. int ftsf_next(ftsf_entry *);
  29. void ftsf_debugent(ftsf_entry *);
  30. __END_DECLS
  31. #endif